llvm.org GIT mirror llvm / ce79a25
rename createX86MCCodeEmitter to more accurately reflect what it creates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95254 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
3 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4848 FunctionPass *createX86JITCodeEmitterPass(X86TargetMachine &TM,
4949 JITCodeEmitter &JCE);
5050
51 MCCodeEmitter *createX86MCCodeEmitter(const Target &, TargetMachine &TM);
51 MCCodeEmitter *createHeinousX86MCCodeEmitter(const Target &, TargetMachine &TM);
5252
5353 /// createX86EmitCodeToMemory - Returns a pass that converts a register
5454 /// allocated function into raw machine code in a dynamically
10991099 }
11001100
11011101 // Ok, now you can look.
1102 MCCodeEmitter *llvm::createX86MCCodeEmitter(const Target &,
1103 TargetMachine &TM) {
1102 MCCodeEmitter *llvm::createHeinousX86MCCodeEmitter(const Target &,
1103 TargetMachine &TM) {
11041104 return new X86MCCodeEmitter(static_cast(TM));
11051105 }
4747 RegisterAsmInfoFn B(TheX86_64Target, createMCAsmInfo);
4848
4949 // Register the code emitter.
50 TargetRegistry::RegisterCodeEmitter(TheX86_32Target, createX86MCCodeEmitter);
51 TargetRegistry::RegisterCodeEmitter(TheX86_64Target, createX86MCCodeEmitter);
50 TargetRegistry::RegisterCodeEmitter(TheX86_32Target,
51 createHeinousX86MCCodeEmitter);
52 TargetRegistry::RegisterCodeEmitter(TheX86_64Target,
53 createHeinousX86MCCodeEmitter);
5254 }
5355
5456