diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 18:52:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 18:52:12 +0000 |
commit | bc8d813f715e47afd27b73b0b7abd00978e0ba51 (patch) | |
tree | 02aaed474e034e9d1331d646fe672ff232acbca6 /lib/Linker | |
parent | e6c42dd6d3cc1e0a8a11224a11bcfbd8c60c6fff (diff) | |
download | external_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.zip external_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.tar.gz external_llvm-bc8d813f715e47afd27b73b0b7abd00978e0ba51.tar.bz2 |
Switch ValueSymbolTable to StringRef based API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index c97cd9c..95f0ece 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -548,8 +548,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src, // Check to see if may have to link the global with the global, alias or // function. if (SGV->hasName() && !SGV->hasLocalLinkage()) - DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SGV->getNameStart(), - SGV->getNameEnd())); + DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SGV->getNameRef())); // If we found a global with the same name in the dest module, but it has // internal linkage, we are really not doing any linkage here. @@ -942,8 +941,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src, // Check to see if may have to link the function with the global, alias or // function. if (SF->hasName() && !SF->hasLocalLinkage()) - DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SF->getNameStart(), - SF->getNameEnd())); + DGV = cast_or_null<GlobalValue>(DestSymTab.lookup(SF->getNameRef())); // If we found a global with the same name in the dest module, but it has // internal linkage, we are really not doing any linkage here. |