diff options
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp')
| -rw-r--r-- | llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp index f77de77a444..468eaa20b46 100644 --- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp @@ -183,11 +183,11 @@ DWARFDebugLine::Prologue dwarfgen::LineTable::createBasicPrologue() const { P.LineRange = 14; P.OpcodeBase = 13; P.StandardOpcodeLengths = {0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1}; - P.IncludeDirectories.push_back(DWARFFormValue(DW_FORM_string)); - P.IncludeDirectories.back().setPValue("a dir"); + P.IncludeDirectories.push_back( + DWARFFormValue::createFromPValue(DW_FORM_string, "a dir")); P.FileNames.push_back(DWARFDebugLine::FileNameEntry()); - P.FileNames.back().Name.setPValue("a file"); - P.FileNames.back().Name.setForm(DW_FORM_string); + P.FileNames.back().Name = + DWARFFormValue::createFromPValue(DW_FORM_string, "a file"); return P; } |

