diff options
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 4273dafefc..50780fa61d 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -6,6 +6,7 @@ #include "X86TargetMachine.h" #include "llvm/Target/TargetMachineImpls.h" +#include "llvm/CodeGen/MachineFunction.h" #include "llvm/PassManager.h" #include "X86.h" #include <iostream> @@ -31,6 +32,9 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) { // TODO: optional optimizations go here + // Print the instruction selected machine code... + PM.add(createMachineFunctionPrinterPass()); + // Perform register allocation to convert to a concrete x86 representation //PM.add(createSimpleX86RegisterAllocator(*this)); |