From 0e219eb9b8a2f6cb1128066584b06c6bd1b51238 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Tue, 12 Jul 2005 02:41:19 +0000 Subject: [PATCH] Clean up the TargetSubtarget class a bit, removing an unnecessary argument 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 | 7 +------ 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 e99afe24680..3b174c2ee46 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 1c161562c37..13987c83d4d 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), -- 2.34.1