forked from OSchip/llvm-project
Use the triple to figure out if this is a darwin target, not
the subtarget. llvm-svn: 219673
This commit is contained in:
parent
307c2cb26f
commit
da84e33791
|
@ -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