Remove the TargetLowering::getSubtarget() virtual function, which
authorDan Gohman <gohman@apple.com>
Tue, 11 May 2010 16:21:03 +0000 (16:21 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 May 2010 16:21:03 +0000 (16:21 +0000)
was unused. TargetMachine::getSubtarget() is used instead.

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

include/llvm/Target/TargetLowering.h
lib/Target/ARM/ARMISelLowering.h
lib/Target/X86/X86ISelLowering.h

index 4ea6c94f3b4a40a045d6d0b1b884d0e945cc06cd..e1209d3eb4414b9261e273ad3cf36ac8bf9fc822 100644 (file)
@@ -1103,12 +1103,6 @@ protected:
   }
   
 public:
-
-  virtual const TargetSubtarget *getSubtarget() const {
-    assert(0 && "Not Implemented");
-    return NULL;    // this is here to silence compiler errors
-  }
-
   //===--------------------------------------------------------------------===//
   // Lowering methods - These methods must be implemented by targets so that
   // the SelectionDAGLowering code knows how to lower these.
index d8a230ff697c2a5c637731faf2bee1b2f94228b9..4d3ef31802c9eaf0594daf5a41b7c342dcd5bd9d 100644 (file)
@@ -236,7 +236,7 @@ namespace llvm {
                                               std::vector<SDValue> &Ops,
                                               SelectionDAG &DAG) const;
 
-    virtual const ARMSubtarget* getSubtarget() const {
+    const ARMSubtarget* getSubtarget() const {
       return Subtarget;
     }
 
index 440601f9827665b3339cfb527fce5cd2439eb4d6..bfbe8eb13cd40bc94aaf6605061aee117bde43f9 100644 (file)
@@ -563,7 +563,7 @@ namespace llvm {
       return !X86ScalarSSEf64 || VT == MVT::f80;
     }
     
-    virtual const X86Subtarget* getSubtarget() const {
+    const X86Subtarget* getSubtarget() const {
       return Subtarget;
     }