summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-05 05:53:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-05 05:53:12 +0000
commit117b20c4922c35704ffd139eec978328e0b32ad2 (patch)
treea2c2e36a6e01b978143eb4c030ea39fecc665c75 /llvm/lib/LTO/LTOCodeGenerator.cpp
parentf907b891da1641034f0603b0c6bc00b7aa4d1f4a (diff)
downloadbcm5719-llvm-117b20c4922c35704ffd139eec978328e0b32ad2.tar.gz
bcm5719-llvm-117b20c4922c35704ffd139eec978328e0b32ad2.zip
Remove the isImplicitlyPrivate argument of getNameWithPrefix.
getSymbolWithGlobalValueBase use is to create a name of a new symbol based on the name of an existing GV. Assert that and then remove the last call to pass true to isImplicitlyPrivate. This gives the mangler API a 1:1 mapping from GV to names, which is what we need to drop the mangler dependency on the target (and use an extended datalayout instead). llvm-svn: 196472
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 2b3648e1f3b..779b4a26174 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -320,7 +320,7 @@ applyRestriction(GlobalValue &GV,
SmallPtrSet<GlobalValue*, 8> &AsmUsed,
Mangler &Mangler) {
SmallString<64> Buffer;
- Mangler.getNameWithPrefix(Buffer, &GV, false);
+ Mangler.getNameWithPrefix(Buffer, &GV);
if (GV.isDeclaration())
return;
OpenPOWER on IntegriCloud