diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-08 01:53:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-08 01:53:52 +0000 |
commit | 72a529566ce526f790f1f546bcafff298b9f540e (patch) | |
tree | f36a31023b36d775969827046fb8ed12f7ba11ff /llvm/lib/IR/DebugInfo.cpp | |
parent | 9bd3609a0849be7b7bfa6717142fc113c778162c (diff) | |
download | bcm5719-llvm-72a529566ce526f790f1f546bcafff298b9f540e.tar.gz bcm5719-llvm-72a529566ce526f790f1f546bcafff298b9f540e.zip |
Remove the llvm-local DW_TAG_vector_type tag and add a test to
make sure that vector types do work.
llvm-svn: 171833
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index d2883080977..7083495c72f 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -197,7 +197,6 @@ bool DIDescriptor::isCompositeType() const { case dwarf::DW_TAG_structure_type: case dwarf::DW_TAG_union_type: case dwarf::DW_TAG_enumeration_type: - case dwarf::DW_TAG_vector_type: case dwarf::DW_TAG_subroutine_type: case dwarf::DW_TAG_class_type: return true; @@ -426,7 +425,7 @@ bool DIType::Verify() const { Tag != dwarf::DW_TAG_ptr_to_member_type && Tag != dwarf::DW_TAG_reference_type && Tag != dwarf::DW_TAG_rvalue_reference_type && - Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_vector_type && + Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_array_type && Tag != dwarf::DW_TAG_enumeration_type && Tag != dwarf::DW_TAG_subroutine_type && @@ -1100,6 +1099,8 @@ void DIType::printInternal(raw_ostream &OS) const { if (isForwardDecl()) OS << " [fwd]"; + if (isVector()) + OS << " [vector]"; } void DIDerivedType::printInternal(raw_ostream &OS) const { |