diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-09 22:48:04 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-09 22:48:04 +0000 |
| commit | b407bb2789e0c1daea1b7d7e896e6a600e408cf0 (patch) | |
| tree | 09e0236b8025e8957d327e2c1e24175f4dcacb6d /llvm/lib | |
| parent | d4a912fefddfe8e9139f1a3163db8c69d81dbd92 (diff) | |
| download | bcm5719-llvm-b407bb2789e0c1daea1b7d7e896e6a600e408cf0.tar.gz bcm5719-llvm-b407bb2789e0c1daea1b7d7e896e6a600e408cf0.zip | |
DebugInfo: Remove DW_TAG_constant
Remove handling for DW_TAG_constant. We started producing it in
r110656, but reverted that in r110876 without dropping the support.
Finish the job.
llvm-svn: 228623
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0f5786cabf6..e8bcf0b856b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1559,7 +1559,6 @@ static dwarf::PubIndexEntryDescriptor computeIndexValue(DwarfUnit *CU, return dwarf::GIEK_TYPE; case dwarf::DW_TAG_subprogram: return dwarf::PubIndexEntryDescriptor(dwarf::GIEK_FUNCTION, Linkage); - case dwarf::DW_TAG_constant: case dwarf::DW_TAG_variable: return dwarf::PubIndexEntryDescriptor(dwarf::GIEK_VARIABLE, Linkage); case dwarf::DW_TAG_enumerator: diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 88f7e33b7dc..ad661c5c435 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -254,8 +254,7 @@ bool DIDescriptor::isSubprogram() const { } bool DIDescriptor::isGlobalVariable() const { - return DbgNode && (getTag() == dwarf::DW_TAG_variable || - getTag() == dwarf::DW_TAG_constant); + return DbgNode && getTag() == dwarf::DW_TAG_variable; } bool DIDescriptor::isScope() const { |

