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/Analysis/TargetLibraryInfo.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/Analysis/TargetLibraryInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetLibraryInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index 5f05e80bd47..3cf1bbc5daa 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -540,7 +540,7 @@ static StringRef sanitizeFunctionName(StringRef funcName) { // Check for \01 prefix that is used to mangle __asm declarations and // strip it if present. - return GlobalValue::getRealLinkageName(funcName); + return GlobalValue::dropLLVMManglingEscape(funcName); } bool TargetLibraryInfoImpl::getLibFunc(StringRef funcName, |