[llvm-commits] [llvm] r70533 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp

Bill Wendling isanbard at gmail.com
Fri May 1 01:25:14 PDT 2009


Author: void
Date: Fri May  1 03:25:13 2009
New Revision: 70533

URL: http://llvm.org/viewvc/llvm-project?rev=70533&view=rev
Log:
Fix whitespace. It was confusing me.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=70533&r1=70532&r2=70533&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Fri May  1 03:25:13 2009
@@ -2099,29 +2099,28 @@
           AddUInt(ScopeDie, DW_AT_call_file, 0, Scope->getFile());
           AddUInt(ScopeDie, DW_AT_call_line, 0, Scope->getLine());
           AddUInt(ScopeDie, DW_AT_call_column, 0, Scope->getColumn());
+        } else {
+          ScopeDie = new DIE(DW_TAG_lexical_block);
         }
+
+        // Add the scope bounds.
+        if (StartID)
+          AddLabel(ScopeDie, DW_AT_low_pc, DW_FORM_addr,
+                   DWLabel("label", StartID));
         else
-          ScopeDie = new DIE(DW_TAG_lexical_block);
-          
-          // Add the scope bounds.
-          if (StartID) {
-            AddLabel(ScopeDie, DW_AT_low_pc, DW_FORM_addr,
-                     DWLabel("label", StartID));
-          } else {
-            AddLabel(ScopeDie, DW_AT_low_pc, DW_FORM_addr,
-                     DWLabel("func_begin", SubprogramCount));
-          }
-          if (EndID) {
-            AddLabel(ScopeDie, DW_AT_high_pc, DW_FORM_addr,
-                     DWLabel("label", EndID));
-          } else {
-            AddLabel(ScopeDie, DW_AT_high_pc, DW_FORM_addr,
-                     DWLabel("func_end", SubprogramCount));
-          }
-          
-          // Add the scope contents.
-          ConstructDbgScope(Scope, StartID, EndID, ScopeDie, Unit);
-          ParentDie->AddChild(ScopeDie);
+          AddLabel(ScopeDie, DW_AT_low_pc, DW_FORM_addr,
+                   DWLabel("func_begin", SubprogramCount));
+
+        if (EndID)
+          AddLabel(ScopeDie, DW_AT_high_pc, DW_FORM_addr,
+                   DWLabel("label", EndID));
+        else
+          AddLabel(ScopeDie, DW_AT_high_pc, DW_FORM_addr,
+                   DWLabel("func_end", SubprogramCount));
+
+        // Add the scope contents.
+        ConstructDbgScope(Scope, StartID, EndID, ScopeDie, Unit);
+        ParentDie->AddChild(ScopeDie);
       }
     }
   }





More information about the llvm-commits mailing list