Implemented basic -m32 and -m64 options.

This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 22:27:03 +01:00
parent 3d6b0b68d5
commit a71b028a0f
4 changed files with 34 additions and 5 deletions

View File

@@ -225,10 +225,13 @@ cl::opt<const llvm::TargetMachineRegistry::entry*, false,
llvm::RegistryParser<llvm::TargetMachine> > mArch("march",
cl::desc("Architecture to generate code for:"));
static cl::alias m("m",
cl::desc("Alias for '-march' for backwards compatibility"),
cl::Prefix,
cl::aliasopt(mArch));
cl::opt<bool> m32bits("m32",
cl::desc("32 bit target"),
cl::ZeroOrMore);
cl::opt<bool> m64bits("m64",
cl::desc("64 bit target"),
cl::ZeroOrMore);
cl::opt<std::string> mCPU("mcpu",
cl::desc("Target a specific cpu type (-mcpu=help for details)"),