]> granicus.if.org Git - llvm/commitdiff
Attempt #2: Fix ABI compatibility with 3.6.0 by moving new virtual function to end...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 29 Apr 2015 15:29:14 +0000 (15:29 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 29 Apr 2015 15:29:14 +0000 (15:29 +0000)
The previous attempt at fixing this only moved the problem to the subclass
vtable. We can safely move the function into the subclass so attempt to fix it
that way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236112 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index 25719505d2ecf4d1d4eea7861655007fccaafb0d..43d6f2772c5e6b1319e1522bee6e583330d28717 100644 (file)
@@ -2011,12 +2011,6 @@ protected:
   /// Replace/modify any TargetFrameIndex operands with a targte-dependent
   /// sequence of memory operands that is recognized by PrologEpilogInserter.
   MachineBasicBlock *emitPatchPoint(MachineInstr *MI, MachineBasicBlock *MBB) const;
-
-public:
-  /// Returns true if arguments should be sign-extended in lib calls.
-  virtual bool shouldSignExtendTypeInLibCall(EVT Type, bool IsSigned) const {
-    return IsSigned;
-  }
 };
 
 /// This class defines information used to lower LLVM code to legal SelectionDAG
@@ -2812,6 +2806,11 @@ public:
   virtual bool useLoadStackGuardNode() const {
     return false;
   }
+
+  /// Returns true if arguments should be sign-extended in lib calls.
+  virtual bool shouldSignExtendTypeInLibCall(EVT Type, bool IsSigned) const {
+    return IsSigned;
+  }
 };
 
 /// Given an LLVM IR type and return type attributes, compute the return value