Skip to content

Commit

Permalink
Use the triple to figure out if this is a darwin target, not
Browse files Browse the repository at this point in the history
the subtarget.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219673 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Oct 14, 2014
1 parent ded375f commit ff91827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/PowerPC/PPCMCInstLower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff91827

Please sign in to comment.