This is now functionality in LLVM, and all callers have already been updated to use the LLVM functions. llvm-svn: 296946