mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add an MCSubtargetInfo variable to the TargetMachine.
This enables us to remove calls to the subtarget from the TargetMachine and with a small hack for backends that require global subtarget information for module level code generation, e.g. mips abi flags, as mentioned in a fixme in the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,6 +32,7 @@ class MCCodeGenInfo;
|
||||
class MCContext;
|
||||
class MCInstrInfo;
|
||||
class MCRegisterInfo;
|
||||
class MCSubtargetInfo;
|
||||
class MCSymbol;
|
||||
class Target;
|
||||
class DataLayout;
|
||||
@@ -90,6 +91,7 @@ protected: // Can only create subclasses.
|
||||
const MCAsmInfo *AsmInfo;
|
||||
const MCRegisterInfo *MRI;
|
||||
const MCInstrInfo *MII;
|
||||
const MCSubtargetInfo *STI;
|
||||
|
||||
unsigned RequireStructuredCFG : 1;
|
||||
|
||||
@@ -140,6 +142,7 @@ public:
|
||||
const MCAsmInfo *getMCAsmInfo() const { return AsmInfo; }
|
||||
const MCRegisterInfo *getMCRegisterInfo() const { return MRI; }
|
||||
const MCInstrInfo *getMCInstrInfo() const { return MII; }
|
||||
const MCSubtargetInfo *getMCSubtargetInfo() const { return STI; }
|
||||
|
||||
/// getIntrinsicInfo - If intrinsic information is available, return it. If
|
||||
/// not, return null.
|
||||
|
Reference in New Issue
Block a user