Print machine code after instruction selection

llvm-svn: 4434
This commit is contained in:
Chris Lattner 2002-10-30 00:47:49 +00:00
parent 40d5ff97c1
commit faa5c82486

View File

@ -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));