llvm.org GIT mirror llvm / 70272aa
The binutils for the IBM BG/P are too old to support CFI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153886 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 8 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
144144
145145 /// isDarwin - True if this is any darwin platform.
146146 bool isDarwin() const { return TargetTriple.isMacOSX(); }
147 /// isBGP - True if this is a BG/P platform.
148 bool isBGP() const { return TargetTriple.getVendor() == Triple::BGP; }
147149
148150 bool isDarwinABI() const { return isDarwin(); }
149151 bool isSVR4ABI() const { return !isDarwin(); }
3838 FrameLowering(Subtarget), JITInfo(*this, is64Bit),
3939 TLInfo(*this), TSInfo(*this),
4040 InstrItins(Subtarget.getInstrItineraryData()) {
41
42 // The binutils for the BG/P are too old for CFI.
43 if (Subtarget.isBGP())
44 setMCUseCFI(false);
4145 }
4246
4347 void PPC32TargetMachine::anchor() { }