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 | 99faa52b7ba56045a6282e50a4cd7fdd3fe7c21e (patch) | |
tree | 7ea2242f7ae5d2ca0c4995de40d7a69093da42af /lib/Linker | |
parent | 1fa3fc6d8962b67b410f429eda354c067e19c2b8 (diff) |
Revert r273568 "Remangle intrinsics names when types are renamed"
It broke 2008-07-15-Bswap.ll and 2009-09-01-PostRAProlog.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/IRMover.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Linker/IRMover.cpp b/lib/Linker/IRMover.cpp index c82fc8b3dff..7d09b7be868 100644 --- a/lib/Linker/IRMover.cpp +++ b/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)) { |