mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +00:00
Print machine code after instruction selection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42c7786227
commit
3dffa7953f
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user