Changes in directory llvm-gcc/gcc:

llvm-expand.c updated: 1.118 -> 1.119
---
Log message:

Fix PR664: http://llvm.cs.uiuc.edu/PR664  by emitting line numbers for 
declarations.



---
Diffs of the changes:  (+11 -9)

 llvm-expand.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)


Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.118 llvm-gcc/gcc/llvm-expand.c:1.119
--- llvm-gcc/gcc/llvm-expand.c:1.118    Tue Nov 29 12:25:04 2005
+++ llvm-gcc/gcc/llvm-expand.c  Sun Dec  4 21:24:21 2005
@@ -2731,14 +2731,14 @@
     int saved_stmts_are_full_exprs_p = stmts_are_full_exprs_p ();
     prep_stmt (t);
   
-    if(debug_info_level > DINFO_LEVEL_NONE){
-      if(TREE_CODE(t) == COMPOUND_STMT){
-       /* skip compound statements - we handle their components. 
-          Avoids emitting multiple stop points for a single line. */
-      }else if (TREE_CODE(t) == DECL_STMT){
-       llvm_emit_dbg_declare(Fn, t); /* FIXME: does nothing */
-      }else{
-       llvm_emit_dbg_stoppoint(Fn, STMT_LINENO(t), 0);
+    if (debug_info_level > DINFO_LEVEL_NONE) {
+      if (TREE_CODE(t) == COMPOUND_STMT) {
+        /* skip compound statements - we handle their components. 
+          Avoids emitting multiple stop points for a single line. */
+      } else if (TREE_CODE(t) == DECL_STMT) {
+        llvm_emit_dbg_declare(Fn, t); /* FIXME: does nothing */
+      } else {
+        llvm_emit_dbg_stoppoint(Fn, STMT_LINENO(t), 0);
       }
     }
 
@@ -8251,7 +8251,9 @@
 
 
 /* Emit intrinsics to mark variable declarations */
-static void llvm_emit_dbg_declare(llvm_function * Fn, tree t){
+static void llvm_emit_dbg_declare(llvm_function * Fn, tree t) {
+  llvm_emit_dbg_stoppoint(Fn, STMT_LINENO(t), 0);
+
   /* FIXME: need to actually do this.  
 
   See llvm_emit_dbg_stoppoint for an example of how to create a new



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to