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
This commit is contained in:
Nate Begeman 2005-07-12 02:41:19 +00:00
parent b151acadc8
commit 0e219eb9b8
2 changed files with 2 additions and 7 deletions

View 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();
};

View 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),