Skip to content

Commit 5d03e7a

Browse files
Revert "[NFC][DebugInfo][DWARF] Create new low-level dwarf library (#… (#145959)
…145081)" This reverts commit cbf781f. Breaks a couple of buildbots.
1 parent 0f1fd87 commit 5d03e7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+800
-889
lines changed

bolt/include/bolt/Core/DIEBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "llvm/CodeGen/DIE.h"
2121
#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
2222
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
23+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
2324
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
24-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
2525
#include "llvm/Support/Allocator.h"
2626

2727
#include <list>

bolt/lib/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
set(LLVM_LINK_COMPONENTS
22
DebugInfoDWARF
3-
DebugInfoDWARFLowLevel
43
Demangle
54
MC
65
MCDisassembler

bolt/lib/Core/DIEBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#include "llvm/CodeGen/DIE.h"
1515
#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
1616
#include "llvm/DebugInfo/DWARF/DWARFDie.h"
17+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
1718
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
1819
#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h"
1920
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
2021
#include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
21-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
2222
#include "llvm/Support/Casting.h"
2323
#include "llvm/Support/Debug.h"
2424
#include "llvm/Support/ErrorHandling.h"

bolt/lib/Core/DebugNames.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include "bolt/Core/DebugNames.h"
1010
#include "bolt/Core/BinaryContext.h"
11+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
1112
#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h"
12-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
1313
#include "llvm/Support/EndianStream.h"
1414
#include "llvm/Support/LEB128.h"
1515
#include <cstdint>

bolt/lib/Rewrite/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
22
Core
33
DebugInfoDWARF
4-
DebugInfoDWARFLowLevel
54
JITLink
65
MC
76
Object

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
2525
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
2626
#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
27+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
2728
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
2829
#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h"
2930
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
30-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
3131
#include "llvm/MC/MCAsmBackend.h"
3232
#include "llvm/MC/MCAssembler.h"
3333
#include "llvm/MC/MCObjectWriter.h"

lldb/source/Expression/DWARFExpression.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
#include "lldb/Target/StackID.h"
3737
#include "lldb/Target/Target.h"
3838
#include "lldb/Target/Thread.h"
39-
#include "llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h"
40-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
39+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
4140

4241
using namespace lldb;
4342
using namespace lldb_private;
@@ -82,7 +81,7 @@ void DWARFExpression::DumpLocation(Stream *s, lldb::DescriptionLevel level,
8281
llvm::DIDumpOptions DumpOpts;
8382
DumpOpts.GetNameForDWARFReg = GetRegName;
8483
llvm::DWARFExpression E(m_data.GetAsLLVM(), m_data.GetAddressByteSize());
85-
llvm::printDwarfExpression(&E, s->AsRawOstream(), DumpOpts, nullptr);
84+
llvm::DWARFExpressionPrinter::print(&E, s->AsRawOstream(), DumpOpts, nullptr);
8685
}
8786

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

lldb/source/Symbol/UnwindPlan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#include "lldb/Utility/Log.h"
1818
#include "llvm/ADT/STLExtras.h"
1919
#include "llvm/DebugInfo/DIContext.h"
20-
#include "llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h"
21-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
20+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
2221
#include <optional>
2322

2423
using namespace lldb;
@@ -90,7 +89,8 @@ static void DumpDWARFExpr(Stream &s, llvm::ArrayRef<uint8_t> expr, Thread *threa
9089
order_and_width->second);
9190
llvm::DWARFExpression E(data, order_and_width->second,
9291
llvm::dwarf::DWARF32);
93-
printDwarfExpression(&E, s.AsRawOstream(), llvm::DIDumpOptions(), nullptr);
92+
llvm::DWARFExpressionPrinter::print(&E, s.AsRawOstream(),
93+
llvm::DIDumpOptions(), nullptr);
9494
} else
9595
s.PutCString("dwarf-expr");
9696
}

lldb/unittests/Symbol/PostfixExpressionTest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#include "lldb/Utility/StreamString.h"
1212
#include "llvm/ADT/StringExtras.h"
1313
#include "llvm/DebugInfo/DIContext.h"
14-
#include "llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h"
15-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
14+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
1615
#include "llvm/Support/FormatVariadic.h"
1716
#include "llvm/Support/raw_ostream.h"
1817
#include "gmock/gmock.h"
@@ -161,7 +160,7 @@ static std::string ParseAndGenerateDWARF(llvm::StringRef expr) {
161160
std::string result;
162161
llvm::raw_string_ostream os(result);
163162
llvm::DWARFExpression E(extractor, addr_size, llvm::dwarf::DWARF32);
164-
llvm::printDwarfExpression(&E, os, llvm::DIDumpOptions(), nullptr);
163+
llvm::DWARFExpressionPrinter::print(&E, os, llvm::DIDumpOptions(), nullptr);
165164
return result;
166165
}
167166

lldb/unittests/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpressionTests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
#include "lldb/Utility/StreamBuffer.h"
1717
#include "lldb/Utility/StreamString.h"
1818
#include "llvm/DebugInfo/DIContext.h"
19-
#include "llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h"
20-
#include "llvm/DebugInfo/DWARF/LowLevel/DWARFExpression.h"
19+
#include "llvm/DebugInfo/DWARF/DWARFExpression.h"
2120

2221
using namespace lldb;
2322
using namespace lldb_private;
@@ -41,7 +40,7 @@ CheckValidProgramTranslation(llvm::StringRef fpo_program,
4140
std::string result;
4241
llvm::raw_string_ostream os(result);
4342
llvm::DWARFExpression E(extractor, /*AddressSize=*/4, llvm::dwarf::DWARF32);
44-
llvm::printDwarfExpression(&E, os, llvm::DIDumpOptions(), nullptr);
43+
llvm::DWARFExpressionPrinter::print(&E, os, llvm::DIDumpOptions(), nullptr);
4544

4645
// actual check
4746
ASSERT_EQ(expected_dwarf_expression, result);

0 commit comments

Comments
 (0)