[llvm-commits] [llvm] r71918 - in /llvm/trunk: include/llvm/CodeGen/Passes.h lib/CodeGen/CMakeLists.txt lib/CodeGen/LLVMTargetMachine.cpp lib/CodeGen/MachineVerifier.cpp
Frits van Bommel
fvbommel at wxs.nl
Sun May 17 11:58:00 PDT 2009
Jakob Stoklund Olesen wrote:
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
> +++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Fri May 15 19:33:53 2009
> @@ -37,6 +37,9 @@
> cl::desc("Dump emitter generated instructions as assembly"));
> static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
> cl::desc("Dump garbage collector data"));
> +static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden,
> + cl::desc("Verify generated machine code"),
> + cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=NULL));
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (added)
> +++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Fri May 15 19:33:53 2009
> @@ -0,0 +1,677 @@
[snip]
> +static RegisterPass<MachineVerifier>
> +MachineVer("verify-machineinstrs", "Verify generated machine code");
This is generating the following error:
<premain>: CommandLine Error: Argument 'verify-machineinstrs' defined more than
once!
ldc: CommandLine Error: Argument 'verify-machineinstrs' defined more than once!
on every program invocation for a program that allows passes to be specified on
the command line without a prefix.
Please rename one of these -verify-machineinstrs.
More information about the llvm-commits
mailing list