diff options
-rw-r--r-- | include/llvm/Target/TargetSubtarget.h | 7 | ||||
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Target/TargetSubtarget.h b/include/llvm/Target/TargetSubtarget.h index e99afe2468..3b174c2ee4 100644 --- a/include/llvm/Target/TargetSubtarget.h +++ b/include/llvm/Target/TargetSubtarget.h @@ -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(); }; diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 1c161562c3..13987c83d4 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -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), |