mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Return an X86ELFWriterInfo object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d73a2a156
commit
fcdea7baf0
@ -18,6 +18,7 @@
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetFrameInfo.h"
|
||||
#include "X86.h"
|
||||
#include "X86ELFWriterInfo.h"
|
||||
#include "X86InstrInfo.h"
|
||||
#include "X86JITInfo.h"
|
||||
#include "X86Subtarget.h"
|
||||
@ -27,11 +28,12 @@ namespace llvm {
|
||||
|
||||
class X86TargetMachine : public LLVMTargetMachine {
|
||||
X86Subtarget Subtarget;
|
||||
const TargetData DataLayout; // Calculates type size & alignment
|
||||
const TargetData DataLayout; // Calculates type size & alignment
|
||||
TargetFrameInfo FrameInfo;
|
||||
X86InstrInfo InstrInfo;
|
||||
X86JITInfo JITInfo;
|
||||
X86TargetLowering TLInfo;
|
||||
X86ELFWriterInfo ELFWriterInfo;
|
||||
|
||||
protected:
|
||||
virtual const TargetAsmInfo *createTargetAsmInfo() const;
|
||||
@ -50,6 +52,9 @@ public:
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
virtual const TargetData *getTargetData() const { return &DataLayout; }
|
||||
virtual const X86ELFWriterInfo *getELFWriterInfo() const {
|
||||
return &ELFWriterInfo;
|
||||
}
|
||||
|
||||
static unsigned getModuleMatchQuality(const Module &M);
|
||||
static unsigned getJITMatchQuality();
|
||||
|
Loading…
Reference in New Issue
Block a user