diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-12-15 19:52:34 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-12-15 19:52:34 +0000 |
commit | 72546fe87b0d3c8c9d8035a16cf913ca84554559 (patch) | |
tree | 8f3a562e64bc743b992ea5e967f32823879224a4 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 22e5551ed730fa6bf5262b56ee0153d70cef5084 (diff) | |
download | bcm5719-llvm-72546fe87b0d3c8c9d8035a16cf913ca84554559.tar.gz bcm5719-llvm-72546fe87b0d3c8c9d8035a16cf913ca84554559.zip |
[DWARFv5] Dump an MD5 checksum in the line-table header.
Adds missing support for DW_FORM_data16.
Differential Revision: https://reviews.llvm.org/D41090
llvm-svn: 320852
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index 886e6e264b3..b3148db30cd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -777,6 +777,7 @@ void DIEBlock::EmitValue(const AsmPrinter *Asm, dwarf::Form Form) const { case dwarf::DW_FORM_block2: Asm->EmitInt16(Size); break; case dwarf::DW_FORM_block4: Asm->EmitInt32(Size); break; case dwarf::DW_FORM_block: Asm->EmitULEB128(Size); break; + case dwarf::DW_FORM_data16: break; } for (const auto &V : values()) @@ -791,6 +792,7 @@ unsigned DIEBlock::SizeOf(const AsmPrinter *AP, dwarf::Form Form) const { case dwarf::DW_FORM_block2: return Size + sizeof(int16_t); case dwarf::DW_FORM_block4: return Size + sizeof(int32_t); case dwarf::DW_FORM_block: return Size + getULEB128Size(Size); + case dwarf::DW_FORM_data16: return 16; default: llvm_unreachable("Improper form for block"); } } |