summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-08 01:53:52 +0000
committerEric Christopher <echristo@gmail.com>2013-01-08 01:53:52 +0000
commit72a529566ce526f790f1f546bcafff298b9f540e (patch)
treef36a31023b36d775969827046fb8ed12f7ba11ff /llvm/lib/CodeGen
parent9bd3609a0849be7b7bfa6717142fc113c778162c (diff)
downloadbcm5719-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/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 372f98da3d9..21cceaf7c3c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -825,7 +825,6 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
Buffer.setTag(Tag);
switch (Tag) {
- case dwarf::DW_TAG_vector_type:
case dwarf::DW_TAG_array_type:
constructArrayTypeDIE(Buffer, &CTy);
break;
@@ -1347,7 +1346,7 @@ void CompileUnit::constructSubrangeDIE(DIE &Buffer, DISubrange SR,
void CompileUnit::constructArrayTypeDIE(DIE &Buffer,
DICompositeType *CTy) {
Buffer.setTag(dwarf::DW_TAG_array_type);
- if (CTy->getTag() == dwarf::DW_TAG_vector_type)
+ if (CTy->isVector())
addFlag(&Buffer, dwarf::DW_AT_GNU_vector);
// Emit derived type.
OpenPOWER on IntegriCloud