Skip to content

Commit 983134e

Browse files
Add strx and all it's variants to FormsToPartition.
In DWARF 5, there are new string inderiction forms, which are strx, strx1, strx2, strx3, and strx4. These forms do not deduplicate in the CAS, and must be partitioned out when creating a CAS representation of the debug info section. Therefore, they need to be added to the FormsToPartition table. This patch addresses that. (cherry picked from commit 2cdd722)
1 parent 03c61e6 commit 983134e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/MCCAS/MCCASDebugV1.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ bool mccasformats::v1::doesntDedup(dwarf::Form Form, dwarf::Attribute Attr) {
218218
dwarf::Attribute::DW_AT_call_file}},
219219
{dwarf::Form::DW_FORM_addrx, {}},
220220
{dwarf::Form::DW_FORM_addr, {}},
221+
{dwarf::Form::DW_FORM_strx, {}},
222+
{dwarf::Form::DW_FORM_strx1, {}},
223+
{dwarf::Form::DW_FORM_strx2, {}},
224+
{dwarf::Form::DW_FORM_strx3, {}},
225+
{dwarf::Form::DW_FORM_strx4, {}},
221226
};
222227

223228
auto it = FormsToPartition.find(Form);

0 commit comments

Comments
 (0)