diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-16 00:39:01 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-16 00:39:01 +0000 |
commit | 6f0ecca3b5937623d32105f4eb55ea48387a74b0 (patch) | |
tree | 382ccbf933b88707a49a24968c55e01f4eb03e03 /llvm/lib/LTO/LTO.cpp | |
parent | 515d1a6804997e9a393934fdab0b3335a99a23ba (diff) | |
download | bcm5719-llvm-6f0ecca3b5937623d32105f4eb55ea48387a74b0.tar.gz bcm5719-llvm-6f0ecca3b5937623d32105f4eb55ea48387a74b0.zip |
IR: Give function GlobalValue::getRealLinkageName() a less misleading name: dropLLVMManglingEscape().
This function gives the wrong answer on some non-ELF platforms in some
cases. The function that does the right thing lives in Mangler.h. To try to
discourage people from using this function, give it a different name.
Differential Revision: https://reviews.llvm.org/D33162
llvm-svn: 303134
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 2d2dcdec05f..c73b6b6b15c 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -973,7 +973,7 @@ Error LTO::runThinLTO(AddStreamFn AddStream, NativeObjectCache Cache, // this value. If not, no need to preserve any ThinLTO copies. !Res.second.IRName.empty()) GUIDPreservedSymbols.insert(GlobalValue::getGUID( - GlobalValue::getRealLinkageName(Res.second.IRName))); + GlobalValue::dropLLVMManglingEscape(Res.second.IRName))); } auto DeadSymbols = @@ -993,7 +993,7 @@ Error LTO::runThinLTO(AddStreamFn AddStream, NativeObjectCache Cache, if (Res.second.IRName.empty()) continue; auto GUID = GlobalValue::getGUID( - GlobalValue::getRealLinkageName(Res.second.IRName)); + GlobalValue::dropLLVMManglingEscape(Res.second.IRName)); // Mark exported unless index-based analysis determined it to be dead. if (!DeadSymbols.count(GUID)) ExportedGUIDs.insert(GUID); |