[llvm] r219673 - Use the triple to figure out if this is a darwin target, not

Eric Christopher echristo at gmail.com
Tue Oct 14 01:25:26 PDT 2014


Author: echristo
Date: Tue Oct 14 03:25:26 2014
New Revision: 219673

URL: http://llvm.org/viewvc/llvm-project?rev=219673&view=rev
Log:
Use the triple to figure out if this is a darwin target, not
the subtarget.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp?rev=219673&r1=219672&r2=219673&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp Tue Oct 14 03:25:26 2014
@@ -40,7 +40,7 @@ static MCSymbol *GetSymbolFromOperand(co
   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;





More information about the llvm-commits mailing list