diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:12:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:12:14 +0000 |
commit | 469340493c48eb22b630bbd311db867c9d7953d6 (patch) | |
tree | b5890a89948a74a2cf2a3eb9c639bc4f0b9b96b9 /tools | |
parent | 61f160a84e068fde0c3b1f706d43381851dbe14e (diff) | |
download | external_llvm-469340493c48eb22b630bbd311db867c9d7953d6.zip external_llvm-469340493c48eb22b630bbd311db867c9d7953d6.tar.gz external_llvm-469340493c48eb22b630bbd311db867c9d7953d6.tar.bz2 |
switch liblto to use the new getNameWithPrefix() method instead of getMangledName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 4 | ||||
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 2 | ||||
-rw-r--r-- | tools/lto/LTOModule.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index a591417..92bf143 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -251,13 +251,13 @@ static void DisambiguateGlobalSymbols(Module *M) { I != E; ++I) { // Don't mangle asm names. if (!I->hasName() || I->getName()[0] != 1) - I->setName(Mang.getMangledName(I)); + I->setName(Mang.getNameWithPrefix(I)); } for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) { // Don't mangle asm names or intrinsics. if ((!I->hasName() || I->getName()[0] != 1) && I->getIntrinsicID() == 0) - I->setName(Mang.getMangledName(I)); + I->setName(Mang.getNameWithPrefix(I)); } } diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index af86043..1ea419a 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -329,7 +329,7 @@ void LTOCodeGenerator::applyScopeRestrictions() for (Module::iterator f = mergedModule->begin(), e = mergedModule->end(); f != e; ++f) { if ( !f->isDeclaration() - && _mustPreserveSymbols.count(mangler.getMangledName(f)) ) + && _mustPreserveSymbols.count(mangler.getNameWithPrefix(f)) ) mustPreserveList.push_back(::strdup(f->getNameStr().c_str())); } for (Module::global_iterator v = mergedModule->global_begin(), diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index bce4162..a3a477f 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -320,7 +320,7 @@ void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler, return; // string is owned by _defines - const char* symbolName = ::strdup(mangler.getMangledName(def).c_str()); + const char* symbolName = ::strdup(mangler.getNameWithPrefix(def).c_str()); // set alignment part log2() can have rounding errors uint32_t align = def->getAlignment(); @@ -393,7 +393,7 @@ void LTOModule::addPotentialUndefinedSymbol(GlobalValue* decl, Mangler &mangler) if (isa<GlobalAlias>(decl)) return; - std::string name = mangler.getMangledName(decl); + std::string name = mangler.getNameWithPrefix(decl); // we already have the symbol if (_undefines.find(name) != _undefines.end()) |