#include "llvm/Transforms/Scalar.h"
#include "llvm/Target/TargetMachineImpls.h"
#include "llvm/CodeGen/MachineFunction.h"
+#include "Support/Statistic.h"
#include "llvm/PassManager.h"
#include "X86.h"
#include <iostream>
// TODO: optional optimizations go here
// Print the instruction selected machine code...
- PM.add(createMachineFunctionPrinterPass());
+ DEBUG(PM.add(createMachineFunctionPrinterPass()));
// Perform register allocation to convert to a concrete x86 representation
PM.add(createSimpleX86RegisterAllocator(*this));
// PM.add(createMachineFunctionPrinterPass());
// Print the register-allocated code
- PM.add(createX86CodePrinterPass(*this, std::cerr));
-
- //PM.add(createEmitX86CodeToMemory(*this));
+ DEBUG(PM.add(createX86CodePrinterPass(*this, std::cerr)));
return false; // success!
}