Skip to content

Commit

Permalink
DebugInfo: Remove DW_TAG_constant
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dexonsmith committed Feb 9, 2015
1 parent d4a912f commit b407bb2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion llvm/docs/SourceLevelDebugging.rst
Expand Up @@ -1807,7 +1807,6 @@ tag is one of:
* DW_TAG_subrange_type
* DW_TAG_base_type
* DW_TAG_const_type
* DW_TAG_constant
* DW_TAG_file_type
* DW_TAG_namelist
* DW_TAG_packed_type
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions llvm/lib/IR/DebugInfo.cpp
Expand Up @@ -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 {
Expand Down
31 changes: 0 additions & 31 deletions llvm/test/DebugInfo/X86/2010-08-10-DbgConstant.ll

This file was deleted.

0 comments on commit b407bb2

Please sign in to comment.