Clean up the TargetSubtarget class a bit, removing an unnecessary argument
authorNate Begeman <natebegeman@mac.com>
Tue, 12 Jul 2005 02:41:19 +0000 (02:41 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 12 Jul 2005 02:41:19 +0000 (02:41 +0000)
to the constructor.

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

include/llvm/Target/TargetSubtarget.h
lib/Target/X86/X86Subtarget.cpp

index e99afe24680964f83714c74ba4a6efb5507782c9..3b174c2ee4630c911cc3604d99db649b0088f161 100644 (file)
@@ -16,8 +16,6 @@
 
 namespace llvm {
 
-class Module;
-
 //===----------------------------------------------------------------------===//
 ///
 /// TargetSubtarget - Generic base class for all target subtargets.  All
@@ -28,10 +26,7 @@ class TargetSubtarget {
   TargetSubtarget(const TargetSubtarget&);   // DO NOT IMPLEMENT
   void operator=(const TargetSubtarget&);  // DO NOT IMPLEMENT
 protected: // Can only create subclasses...
-  /// This constructor initializes the data members to match that 
-  /// of the specified module.
-  ///
-  TargetSubtarget(const Module &M);
+  TargetSubtarget();
 public:
   virtual ~TargetSubtarget();
 };
index 1c161562c37522fe17a45c613e4e8921ea376853..13987c83d4d54b0d25bd58122fa6fc74a3ade581 100644 (file)
@@ -16,7 +16,7 @@
 using namespace llvm;
 
 X86Subtarget::X86Subtarget(const Module &M) 
-  : TargetSubtarget(M), stackAlignment(8), 
+  : TargetSubtarget(), stackAlignment(8), 
     indirectExternAndWeakGlobals(false), asmDarwinLinkerStubs(false),
     asmLeadingUnderscore(false), asmAlignmentIsInBytes(false),
     asmPrintDotLocalConstants(false), asmPrintDotLCommConstants(false),