diff options
author | Devang Patel <dpatel@apple.com> | 2011-08-15 18:35:42 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-08-15 18:35:42 +0000 |
commit | 59bc4093d5009ecda4a4f70ed04c78502e28474f (patch) | |
tree | 8587355cc0d4f5353e2f0c4af167f6a4b7487f8a /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 06f20ebfcf2b4dbe388f6d506b62fb2aa8af5fe8 (diff) | |
download | external_llvm-59bc4093d5009ecda4a4f70ed04c78502e28474f.zip external_llvm-59bc4093d5009ecda4a4f70ed04c78502e28474f.tar.gz external_llvm-59bc4093d5009ecda4a4f70ed04c78502e28474f.tar.bz2 |
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5876456..54c0419 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -377,20 +377,8 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, LexicalScope *Scope) { if (Name.empty()) return NULL; - // Translate tag to proper Dwarf tag. The result variable is dropped for - // now. - unsigned Tag; - switch (DV->getTag()) { - case dwarf::DW_TAG_return_variable: - return NULL; - case dwarf::DW_TAG_arg_variable: - Tag = dwarf::DW_TAG_formal_parameter; - break; - case dwarf::DW_TAG_auto_variable: // fall thru - default: - Tag = dwarf::DW_TAG_variable; - break; - } + // Translate tag to proper Dwarf tag. + unsigned Tag = DV->getTag(); // Define variable debug information entry. DIE *VariableDie = new DIE(Tag); |