static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
static cl::opt<const TargetMachineRegistry::Entry*, false, TargetNameParser>
-MArch("march", cl::desc("Architecture to generate assembly for:"));
+MArch("march", cl::desc("Architecture to generate code for:"));
// GetFileNameRoot - Helper function to get the basename of a filename...
static inline std::string
// Build up all of the passes that we want to do to the module...
PassManager Passes;
- Passes.add(new TargetData("llc", TD.isLittleEndian(), TD.getPointerSize(),
- TD.getPointerAlignment(), TD.getDoubleAlignment()));
+ Passes.add(new TargetData(TD));
// Figure out where we are going to send the output...
std::ostream *Out = 0;
}
}
- // Ask the target to add backend passes as necessary
+ // Ask the target to add backend passes as necessary.
if (Target.addPassesToEmitFile(Passes, *Out, TargetMachine::AssemblyFile)) {
std::cerr << argv[0] << ": target '" << Target.getName()
<< "' does not support static compilation!\n";