summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-16 18:12:14 +0000
committerChris Lattner <sabre@nondot.org>2010-01-16 18:12:14 +0000
commit9787fd04687fab883fc0b23894e64f057697eb1d (patch)
treee6810f7d867a2e9769f7a88887835f0ad2dd278f /llvm/tools/lto
parente1ad8a105af6d224cf791533cd88ce3e62c1de19 (diff)
downloadbcm5719-llvm-9787fd04687fab883fc0b23894e64f057697eb1d.tar.gz
bcm5719-llvm-9787fd04687fab883fc0b23894e64f057697eb1d.zip
switch liblto to use the new getNameWithPrefix() method instead of getMangledName.
llvm-svn: 93643
Diffstat (limited to 'llvm/tools/lto')
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.cpp2
-rw-r--r--llvm/tools/lto/LTOModule.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp
index af860438448..1ea419a918b 100644
--- a/llvm/tools/lto/LTOCodeGenerator.cpp
+++ b/llvm/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/llvm/tools/lto/LTOModule.cpp b/llvm/tools/lto/LTOModule.cpp
index bce416207c4..a3a477fed9a 100644
--- a/llvm/tools/lto/LTOModule.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud