aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
diff options
context:
space:
mode:
authorXing GUO <higuoxing@gmail.com>2020-08-21 10:33:58 +0800
committerXing GUO <higuoxing@gmail.com>2020-08-21 11:44:25 +0800
commitf7ff0ace96db9164dcde232c36cab6519ea4fce8 (patch)
treef86a96cf4a6490ca41da9381e16feaaad6471e59 /llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
parente151acc073ab8b311dbaee11a6bc4cf16cef0575 (diff)
downloadllvm-f7ff0ace96db9164dcde232c36cab6519ea4fce8.zip
llvm-f7ff0ace96db9164dcde232c36cab6519ea4fce8.tar.gz
llvm-f7ff0ace96db9164dcde232c36cab6519ea4fce8.tar.bz2
[DWARFYAML] Add support for referencing different abbrev tables.
This patch adds support for referencing different abbrev tables. We use 'ID' to distinguish abbrev tables and use 'AbbrevTableID' to explicitly assign an abbrev table to compilation units. The syntax is: ``` debug_abbrev: - ID: 0 Table: ... - ID: 1 Table: ... debug_info: - ... AbbrevTableID: 1 ## Reference the second abbrev table. - ... AbbrevTableID: 0 ## Reference the first abbrev table. ``` Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D83116
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index f59b18f..c08a0e1 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -2487,6 +2487,7 @@ TEST(DWARFDebugInfo, TestDwarfVerifyCUDontShareLineTable) {
- Value: 0x0000000000000000
- Length: 16
Version: 4
+ AbbrevTableID: 0
AbbrOffset: 0
AddrSize: 8
Entries: