mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Use the triple to figure out if this is a darwin target, not
the subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ded375f282
commit
ff9182749e
@ -40,7 +40,7 @@ static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){
|
||||
Mangler *Mang = AP.Mang;
|
||||
const DataLayout *DL = TM.getSubtargetImpl()->getDataLayout();
|
||||
MCContext &Ctx = AP.OutContext;
|
||||
bool isDarwin = TM.getSubtarget<PPCSubtarget>().isDarwin();
|
||||
bool isDarwin = Triple(TM.getTargetTriple()).isOSDarwin();
|
||||
|
||||
SmallString<128> Name;
|
||||
StringRef Suffix;
|
||||
|
Loading…
Reference in New Issue
Block a user