mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
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:
parent
b151acadc8
commit
0e219eb9b8
@ -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();
|
||||
};
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user