diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-05 05:53:12 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-05 05:53:12 +0000 |
| commit | 117b20c4922c35704ffd139eec978328e0b32ad2 (patch) | |
| tree | a2c2e36a6e01b978143eb4c030ea39fecc665c75 /llvm/lib/LTO | |
| parent | f907b891da1641034f0603b0c6bc00b7aa4d1f4a (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/LTO/LTOModule.cpp | 4 |
2 files changed, 3 insertions, 3 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; diff --git a/llvm/lib/LTO/LTOModule.cpp b/llvm/lib/LTO/LTOModule.cpp index 65416bed927..77eb3cae78b 100644 --- a/llvm/lib/LTO/LTOModule.cpp +++ b/llvm/lib/LTO/LTOModule.cpp @@ -360,7 +360,7 @@ void LTOModule::addDefinedSymbol(const GlobalValue *def, bool isFunction) { // string is owned by _defines SmallString<64> Buffer; - _mangler.getNameWithPrefix(Buffer, def, false); + _mangler.getNameWithPrefix(Buffer, def); // set alignment part log2() can have rounding errors uint32_t align = def->getAlignment(); @@ -496,7 +496,7 @@ LTOModule::addPotentialUndefinedSymbol(const GlobalValue *decl, bool isFunc) { return; SmallString<64> name; - _mangler.getNameWithPrefix(name, decl, false); + _mangler.getNameWithPrefix(name, decl); StringMap<NameAndAttributes>::value_type &entry = _undefines.GetOrCreateValue(name); |

