summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-22 21:33:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-22 21:33:09 +0000
commit3d5126fbad17647088b7335cd5fea178407211e2 (patch)
tree1a52e36acfe1992a11e24ead88e23bcfdc74a439 /tools/lto
parent70c9d17f27d1ef89ed80566aeb529f68d2ad9480 (diff)
downloadllvm-3d5126fbad17647088b7335cd5fea178407211e2.tar.gz
llvm-3d5126fbad17647088b7335cd5fea178407211e2.tar.bz2
llvm-3d5126fbad17647088b7335cd5fea178407211e2.tar.xz
Switch some clients to Value::getName(), and other getName() user
simplification. - NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 9aca59cd6a..93689e3528 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -375,13 +375,13 @@ void LTOCodeGenerator::applyScopeRestrictions()
e = mergedModule->end(); f != e; ++f) {
if ( !f->isDeclaration()
&& _mustPreserveSymbols.count(mangler.getMangledName(f)) )
- mustPreserveList.push_back(::strdup(f->getName().c_str()));
+ mustPreserveList.push_back(::strdup(f->getNameStr().c_str()));
}
for (Module::global_iterator v = mergedModule->global_begin(),
e = mergedModule->global_end(); v != e; ++v) {
if ( !v->isDeclaration()
&& _mustPreserveSymbols.count(mangler.getMangledName(v)) )
- mustPreserveList.push_back(::strdup(v->getName().c_str()));
+ mustPreserveList.push_back(::strdup(v->getNameStr().c_str()));
}
passes.add(createInternalizePass(mustPreserveList));
}