Use the triple to figure out if this is a darwin target, not

the subtarget.

llvm-svn: 219673
This commit is contained in:
Eric Christopher 2014-10-14 08:25:26 +00:00
parent 307c2cb26f
commit da84e33791
1 changed files with 1 additions and 1 deletions

View File

@ -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;