llvm.org GIT mirror llvm / 7f89fda
remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95144 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
4 changed file(s) with 0 addition(s) and 43 deletion(s). Raw diff Collapse all Expand all
4545
4646 /// createX86CodeEmitterPass - Return a pass that emits the collected X86 code
4747 /// to the specified MCE object.
48
49 FunctionPass *createX86CodeEmitterPass(X86TargetMachine &TM,
50 MachineCodeEmitter &MCE);
5148 FunctionPass *createX86JITCodeEmitterPass(X86TargetMachine &TM,
5249 JITCodeEmitter &JCE);
53 FunctionPass *createX86ObjectCodeEmitterPass(X86TargetMachine &TM,
54 ObjectCodeEmitter &OCE);
5550
5651 MCCodeEmitter *createX86MCCodeEmitter(const Target &, TargetMachine &TM);
5752
2020 #include "X86.h"
2121 #include "llvm/LLVMContext.h"
2222 #include "llvm/PassManager.h"
23 #include "llvm/CodeGen/MachineCodeEmitter.h"
2423 #include "llvm/CodeGen/JITCodeEmitter.h"
25 #include "llvm/CodeGen/ObjectCodeEmitter.h"
2624 #include "llvm/CodeGen/MachineFunctionPass.h"
2725 #include "llvm/CodeGen/MachineInstr.h"
2826 #include "llvm/CodeGen/MachineModuleInfo.h"
109107
110108 /// createX86CodeEmitterPass - Return a pass that emits the collected X86 code
111109 /// to the specified templated MachineCodeEmitter object.
112
113 FunctionPass *llvm::createX86CodeEmitterPass(X86TargetMachine &TM,
114 MachineCodeEmitter &MCE) {
115 return new Emitter(TM, MCE);
116 }
117110 FunctionPass *llvm::createX86JITCodeEmitterPass(X86TargetMachine &TM,
118111 JITCodeEmitter &JCE) {
119112 return new Emitter(TM, JCE);
120 }
121 FunctionPass *llvm::createX86ObjectCodeEmitterPass(X86TargetMachine &TM,
122 ObjectCodeEmitter &OCE) {
123 return new Emitter(TM, OCE);
124113 }
125114
126115 template
167167
168168 bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM,
169169 CodeGenOpt::Level OptLevel,
170 MachineCodeEmitter &MCE) {
171 // FIXME: Move this to TargetJITInfo!
172 // On Darwin, do not override 64-bit setting made in X86TargetMachine().
173 if (DefRelocModel == Reloc::Default &&
174 (!Subtarget.isTargetDarwin() || !Subtarget.is64Bit())) {
175 setRelocationModel(Reloc::Static);
176 Subtarget.setPICStyle(PICStyles::None);
177 }
178
179 PM.add(createX86CodeEmitterPass(*this, MCE));
180
181 return false;
182 }
183
184 bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM,
185 CodeGenOpt::Level OptLevel,
186170 JITCodeEmitter &JCE) {
187171 // FIXME: Move this to TargetJITInfo!
188172 // On Darwin, do not override 64-bit setting made in X86TargetMachine().
195179
196180 PM.add(createX86JITCodeEmitterPass(*this, JCE));
197181
198 return false;
199 }
200
201 bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM,
202 CodeGenOpt::Level OptLevel,
203 ObjectCodeEmitter &OCE) {
204 PM.add(createX86ObjectCodeEmitterPass(*this, OCE));
205182 return false;
206183 }
207184
7878 virtual bool addPreRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
7979 virtual bool addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
8080 virtual bool addCodeEmitter(PassManagerBase &PM, CodeGenOpt::Level OptLevel,
81 MachineCodeEmitter &MCE);
82 virtual bool addCodeEmitter(PassManagerBase &PM, CodeGenOpt::Level OptLevel,
8381 JITCodeEmitter &JCE);
84 virtual bool addCodeEmitter(PassManagerBase &PM, CodeGenOpt::Level OptLevel,
85 ObjectCodeEmitter &OCE);
8682 };
8783
8884 /// X86_32TargetMachine - X86 32-bit target machine.