diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-06-23 16:13:23 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-06-23 16:13:23 +0000 |
commit | a63b50afb89c976a18355e8ebc5b89349e90d3d5 (patch) | |
tree | 1c30c4439a2f4f8c15c97fb4bac6a7e61fc959c6 /llvm/lib/Linker/IRMover.cpp | |
parent | Fix an old memset signature in 2009-09-01-PostRAProlog.ll test causing a buil... (diff) | |
download | llvm-project-a63b50afb89c976a18355e8ebc5b89349e90d3d5.tar.gz llvm-project-a63b50afb89c976a18355e8ebc5b89349e90d3d5.tar.bz2 llvm-project-a63b50afb89c976a18355e8ebc5b89349e90d3d5.zip |
Revert r273568 "Remangle intrinsics names when types are renamed"
It broke 2008-07-15-Bswap.ll and 2009-09-01-PostRAProlog.ll
llvm-svn: 273574
Diffstat (limited to 'llvm/lib/Linker/IRMover.cpp')
-rw-r--r-- | llvm/lib/Linker/IRMover.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp index c82fc8b3dff2..7d09b7be868f 100644 --- a/llvm/lib/Linker/IRMover.cpp +++ b/llvm/lib/Linker/IRMover.cpp @@ -16,7 +16,6 @@ #include "llvm/IR/DebugInfo.h" #include "llvm/IR/DiagnosticPrinter.h" #include "llvm/IR/GVMaterializer.h" -#include "llvm/IR/Intrinsics.h" #include "llvm/IR/TypeFinder.h" #include "llvm/Support/Error.h" #include "llvm/Transforms/Utils/Cloning.h" @@ -902,14 +901,6 @@ Expected<Constant *> IRLinker::linkGlobalValueProto(GlobalValue *SGV, if (ShouldLink || !ForAlias) forceRenaming(NewGV, SGV->getName()); } - - // Overloaded intrinsics have overloaded types names as part of their - // names. If we renamed overloaded types we should rename the intrinsic - // as well. - if (Function *F = dyn_cast<Function>(NewGV)) - if (auto Remangled = Intrinsic::remangleIntrinsicFunction(F)) - NewGV = Remangled.getValue(); - if (ShouldLink || ForAlias) { if (const Comdat *SC = SGV->getComdat()) { if (auto *GO = dyn_cast<GlobalObject>(NewGV)) { |