mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +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:
@ -42,13 +42,15 @@ TargetMachine::TargetMachine(const Target &T, StringRef DataLayoutString,
|
||||
const TargetOptions &Options)
|
||||
: TheTarget(T), DL(DataLayoutString), TargetTriple(TT), TargetCPU(CPU),
|
||||
TargetFS(FS), CodeGenInfo(nullptr), AsmInfo(nullptr), MRI(nullptr),
|
||||
MII(nullptr), RequireStructuredCFG(false), Options(Options) {}
|
||||
MII(nullptr), STI(nullptr), RequireStructuredCFG(false),
|
||||
Options(Options) {}
|
||||
|
||||
TargetMachine::~TargetMachine() {
|
||||
delete CodeGenInfo;
|
||||
delete AsmInfo;
|
||||
delete MRI;
|
||||
delete MII;
|
||||
delete STI;
|
||||
}
|
||||
|
||||
/// \brief Reset the target options based on the function's attributes.
|
||||
|
Reference in New Issue
Block a user