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/IR/DiagnosticInfo.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/IR/DiagnosticInfo.cpp')
| -rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index 0afcbe589eb..e73f53f3202 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -204,7 +204,7 @@ DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, const Value *V // Only include names that correspond to user variables. FIXME: we should use // debug info if available to get the name of the user variable. if (isa<llvm::Argument>(V) || isa<GlobalValue>(V)) - Val = GlobalValue::getRealLinkageName(V->getName()); + Val = GlobalValue::dropLLVMManglingEscape(V->getName()); else if (isa<Constant>(V)) { raw_string_ostream OS(Val); V->printAsOperand(OS, /*PrintType=*/false); |

