mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Simplify the Mangler interface now that DataLayout is mandatory.
We only need to pass in a DataLayout when mangling a raw string, not when constructing the mangler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -159,7 +159,7 @@ GetSymbolFromOperand(const MachineOperand &MO) const {
|
||||
const GlobalValue *GV = MO.getGlobal();
|
||||
AsmPrinter.getNameWithPrefix(Name, GV);
|
||||
} else if (MO.isSymbol()) {
|
||||
getMang()->getNameWithPrefix(Name, MO.getSymbolName());
|
||||
Mangler::getNameWithPrefix(Name, MO.getSymbolName(), *DL);
|
||||
} else if (MO.isMBB()) {
|
||||
assert(Suffix.empty());
|
||||
Sym = MO.getMBB()->getSymbol();
|
||||
|
Reference in New Issue
Block a user