[llvm-commits] [129769] Provide command line switches to print pass manager info useful for debugging .

dpatel at apple.com dpatel at apple.com
Fri Jul 20 16:11:01 PDT 2007


Revision: 129769
Author:   dpatel
Date:     2007-07-20 16:11:01 -0700 (Fri, 20 Jul 2007)

Log Message:
-----------
Provide command line switches to print pass manager info useful for debugging.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/common.opt
    apple-local/branches/llvm/gcc/llvm-backend.cpp

Modified: apple-local/branches/llvm/gcc/common.opt
===================================================================
--- apple-local/branches/llvm/gcc/common.opt	2007-07-20 22:58:17 UTC (rev 129768)
+++ apple-local/branches/llvm/gcc/common.opt	2007-07-20 23:11:01 UTC (rev 129769)
@@ -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: apple-local/branches/llvm/gcc/llvm-backend.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-07-20 22:58:17 UTC (rev 129768)
+++ apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-07-20 23:11:01 UTC (rev 129769)
@@ -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