diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-01 08:25:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-01 08:25:13 +0000 |
commit | 1c24c7449510c289d55d9e6ce1b5c5a32c65eca2 (patch) | |
tree | 7a21bfac87059db9ac00134192f77a959a330c25 /llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 3b201db3c0af572a81e38e84cb3a9390d0cfb995 (diff) | |
download | bcm5719-llvm-1c24c7449510c289d55d9e6ce1b5c5a32c65eca2.tar.gz bcm5719-llvm-1c24c7449510c289d55d9e6ce1b5c5a32c65eca2.zip |
Fix whitespace. It was confusing me.
llvm-svn: 70533
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index bfac3b68ae1..b454cd09fb8 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -2099,29 +2099,28 @@ private: 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); } } } |