Simplify / normalize some uses of Value::getName.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2009-07-21 08:54:24 +00:00
parent 4cf95d75c6
commit fbee579ed4
5 changed files with 7 additions and 7 deletions

View File

@@ -993,7 +993,7 @@ void ExecutionEngine::emitGlobals() {
// External variable reference. Try to use the dynamic loader to
// get a pointer to it.
if (void *SymAddr =
sys::DynamicLibrary::SearchForAddressOfSymbol(I->getName().c_str()))
sys::DynamicLibrary::SearchForAddressOfSymbol(I->getName()))
addGlobalMapping(I, SymAddr);
else {
llvm_report_error("Could not resolve external global address: "