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 | 821048d4c31954e832de1eecbfe70569f65e07e9 (patch) | |
tree | 3befec60e9f3b3e053b47d61d8eaa7c24fbcc547 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | 904f71c6944dcd2da6c4ee098ba57884ae50c2a1 (diff) | |
download | external_llvm-821048d4c31954e832de1eecbfe70569f65e07e9.zip external_llvm-821048d4c31954e832de1eecbfe70569f65e07e9.tar.gz external_llvm-821048d4c31954e832de1eecbfe70569f65e07e9.tar.bz2 |
Fix whitespace. It was confusing me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index bfac3b6..b454cd0 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/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); } } } |