Skip to content

Commit df8db82

Browse files
Update lldb targets.
1 parent 1b2fcdc commit df8db82

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

lldb/source/Expression/DWARFExpression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ void DWARFExpression::DumpLocation(Stream *s, lldb::DescriptionLevel level,
8080
};
8181
llvm::DIDumpOptions DumpOpts;
8282
DumpOpts.GetNameForDWARFReg = GetRegName;
83-
llvm::DWARFExpression(m_data.GetAsLLVM(), m_data.GetAddressByteSize())
84-
.print(s->AsRawOstream(), DumpOpts, nullptr);
83+
llvm::DWARFExpression E(m_data.GetAsLLVM(), m_data.GetAddressByteSize());
84+
llvm::DWARFExpressionPrinter::print(&E, s->AsRawOstream(), DumpOpts, nullptr);
8585
}
8686

8787
RegisterKind DWARFExpression::GetRegisterKind() const { return m_reg_kind; }

lldb/source/Symbol/UnwindPlan.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ static void DumpDWARFExpr(Stream &s, llvm::ArrayRef<uint8_t> expr, Thread *threa
8787
if (auto order_and_width = GetByteOrderAndAddrSize(thread)) {
8888
llvm::DataExtractor data(expr, order_and_width->first == eByteOrderLittle,
8989
order_and_width->second);
90-
llvm::DWARFExpression(data, order_and_width->second, llvm::dwarf::DWARF32)
91-
.print(s.AsRawOstream(), llvm::DIDumpOptions(), nullptr);
90+
llvm::DWARFExpression E(data, order_and_width->second, llvm::dwarf::DWARF32);
91+
llvm::DWARFExpressionPrinter::print(&E, s.AsRawOstream(),
92+
llvm::DIDumpOptions(), nullptr);
9293
} else
9394
s.PutCString("dwarf-expr");
9495
}

lldb/unittests/Symbol/PostfixExpressionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ static std::string ParseAndGenerateDWARF(llvm::StringRef expr) {
159159

160160
std::string result;
161161
llvm::raw_string_ostream os(result);
162-
llvm::DWARFExpression(extractor, addr_size, llvm::dwarf::DWARF32)
163-
.print(os, llvm::DIDumpOptions(), nullptr);
162+
llvm::DWARFExpression E(extractor, addr_size, llvm::dwarf::DWARF32);
163+
llvm::DWARFExpressionPrinter::print(&E, os, llvm::DIDumpOptions(), nullptr);
164164
return result;
165165
}
166166

lldb/unittests/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpressionTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ CheckValidProgramTranslation(llvm::StringRef fpo_program,
3939

4040
std::string result;
4141
llvm::raw_string_ostream os(result);
42-
llvm::DWARFExpression(extractor, /*AddressSize=*/4, llvm::dwarf::DWARF32)
43-
.print(os, llvm::DIDumpOptions(), nullptr);
42+
llvm::DWARFExpression E(extractor, /*AddressSize=*/4, llvm::dwarf::DWARF32);
43+
llvm::DWARFExpressionPrinter::print(&E, os, llvm::DIDumpOptions(), nullptr);
4444

4545
// actual check
4646
ASSERT_EQ(expected_dwarf_expression, result);

0 commit comments

Comments
 (0)