diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-04 21:51:53 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-04 21:51:53 +0000 |
commit | cad9b53c02fc7f4990afd64c59b2b4e44108fe11 (patch) | |
tree | fd012e51fcf0570e0ead3d18be14f8bd8cf03826 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 1e00ac6256e017af4a83f8fbc6ba8614114dde6d (diff) | |
download | bcm5719-llvm-cad9b53c02fc7f4990afd64c59b2b4e44108fe11.tar.gz bcm5719-llvm-cad9b53c02fc7f4990afd64c59b2b4e44108fe11.zip |
Add a name for the anonymous type we're creating for subrange
types and a FIXME for what we should be doing. Should solve the
immediacy of PR12069 where our debug info is crashing another
tool.
llvm-svn: 171536
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 8caf4b9e614..3b9ce658f8c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1329,10 +1329,13 @@ void CompileUnit::constructArrayTypeDIE(DIE &Buffer, DIArray Elements = CTy->getTypeArray(); // Get an anonymous type for index type. + // FIXME: This type should be passed down from the front end + // as different languages may have different sizes for indexes. DIE *IdxTy = getIndexTyDie(); if (!IdxTy) { // Construct an anonymous type for index type. IdxTy = new DIE(dwarf::DW_TAG_base_type); + addString(IdxTy, dwarf::DW_AT_name, "int"); addUInt(IdxTy, dwarf::DW_AT_byte_size, 0, sizeof(int32_t)); addUInt(IdxTy, dwarf::DW_AT_encoding, dwarf::DW_FORM_data1, dwarf::DW_ATE_signed); |