aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-27 08:12:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-27 08:12:55 +0000
commit2f37963b50b496c99300850683ed41db4f9431b6 (patch)
tree8bab742dd1cb96ec5155dfe9736c0de3c3c7b81a /lib/Target/X86/X86TargetMachine.cpp
parent1f32816fdaf9ba3a7e6e5705f94be145fafde497 (diff)
downloadexternal_llvm-2f37963b50b496c99300850683ed41db4f9431b6.zip
external_llvm-2f37963b50b496c99300850683ed41db4f9431b6.tar.gz
external_llvm-2f37963b50b496c99300850683ed41db4f9431b6.tar.bz2
llvm-mc/X86: Implement single instruction encoding interface for MC.
- Note, this is a gigantic hack, with the sole purpose of unblocking further work on the assembler (its also possible to test the mathcer more completely now). - Despite being a hack, its actually good enough to work over all of 403.gcc (although some encodings are probably incorrect). This is a testament to the beauty of X86's MachineInstr, no doubt! ;) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 4651f46..a61de1c 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -47,6 +47,10 @@ extern "C" void LLVMInitializeX86Target() {
// Register the target asm info.
RegisterAsmInfoFn A(TheX86_32Target, createMCAsmInfo);
RegisterAsmInfoFn B(TheX86_64Target, createMCAsmInfo);
+
+ // Register the code emitter.
+ TargetRegistry::RegisterCodeEmitter(TheX86_32Target, createX86MCCodeEmitter);
+ TargetRegistry::RegisterCodeEmitter(TheX86_64Target, createX86MCCodeEmitter);
}