Use the triple to figure out if this is a darwin target, not
[oota-llvm.git] / lib / Target / PowerPC / PPCMCInstLower.cpp
index f4984cd649a83b03c9d2e1b19b2a0a67631093f6..a67f8d07b85fe6a6296ba234d66da24eb9a51506 100644 (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;