Don't avoid cfi instructions on the bg/p.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Mar 2014 19:04:12 +0000 (19:04 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 7 Mar 2014 19:04:12 +0000 (19:04 +0000)
The integrated assembler now works for ppc. Since this was the last use of the
bg/p predicate and Hal says that it is now dead, drop the predicate too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203269 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCSubtarget.h
lib/Target/PowerPC/PPCTargetMachine.cpp

index a9159fbc73d79d61d51a76dd9e19bf00ad4c218e..e9f831018903362a2391b5a2e151fded8db6ae10 100644 (file)
@@ -190,8 +190,6 @@ public:
 
   /// isDarwin - True if this is any darwin platform.
   bool isDarwin() const { return TargetTriple.isMacOSX(); }
-  /// isBGP - True if this is a BG/P platform.
-  bool isBGP() const { return TargetTriple.getVendor() == Triple::BGP; }
   /// isBGQ - True if this is a BG/Q platform.
   bool isBGQ() const { return TargetTriple.getVendor() == Triple::BGQ; }
 
index b6dffc205b0ea03f5827ff99eada7e96a17823db..46d2064a18d445c74043ea73cb88ba60de4a8b6f 100644 (file)
@@ -75,10 +75,6 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT,
     FrameLowering(Subtarget), JITInfo(*this, is64Bit),
     TLInfo(*this), TSInfo(*this),
     InstrItins(Subtarget.getInstrItineraryData()) {
-
-  // The binutils for the BG/P are too old for CFI.
-  if (Subtarget.isBGP())
-    setMCUseCFI(false);
   initAsmInfo();
 }