[llvm-commits] [llvm-gcc-4.0] r40432 - in /llvm-gcc-4.0/trunk/gcc: common.opt llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Mon Jul 23 02:47:04 PDT 2007
Author: baldrick
Date: Mon Jul 23 04:47:03 2007
New Revision: 40432
URL: http://llvm.org/viewvc/llvm-project?rev=40432&view=rev
Log:
Recover [129769], lost in the repository move.
Provide command line switches to print pass manager info useful for debugging.
Patch by Devang.
Modified:
llvm-gcc-4.0/trunk/gcc/common.opt
llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.0/trunk/gcc/common.opt
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/common.opt?rev=40432&r1=40431&r2=40432&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/common.opt (original)
+++ llvm-gcc-4.0/trunk/gcc/common.opt Mon Jul 23 04:47:03 2007
@@ -202,6 +202,15 @@
emit-llvm-bc
Common Report Var(emit_llvm_bc)
Emit LLVM IR to the output file instead of native machine code.
+
+; Debug pass manager
+fdebug-pass-structure
+Common Report Var(flag_debug_pass_structure)
+Print pass manager structure
+
+fdebug-pass-arguments
+Common Report Var(flag_debug_pass_arguments)
+Print pass manager arguments
; APPLE LOCAL end LLVM
; The version of the C++ ABI in use. The following values are allowed:
Modified: llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp?rev=40432&r1=40431&r2=40432&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp Mon Jul 23 04:47:03 2007
@@ -118,7 +118,10 @@
Args.push_back("--nozero-initialized-in-bss");
if (flag_debug_asm)
Args.push_back("--asm-verbose");
-
+ if (flag_debug_pass_structure)
+ Args.push_back("--debug-pass=Structure");
+ if (flag_debug_pass_arguments)
+ Args.push_back("--debug-pass=Arguments");
// Disabled until PR1224 is resolved.
//if (flag_exceptions)
// Args.push_back("--enable-eh");
More information about the llvm-commits
mailing list