Skip to content

Commit a2fb705

Browse files
committed
Revert "[lldb] Add cast to fix compile error on 32-bit platforms"
This reverts commit f6012a2. Revert "[lldb] Add cast to fix compile error on 32-but platforms" This reverts commit d300337. Revert "[lldb] Improve log message to include missing strings" This reverts commit 0be3348. Revert "[lldb] Add comment" This reverts commit e2bb474. Revert "[lldb] Implement a formatter bytecode interpreter in C++" This reverts commit 9a9c1d4.
1 parent cf27e8e commit a2fb705

22 files changed

+83
-1368
lines changed

lldb/include/lldb/DataFormatters/FormatterSection.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

lldb/include/lldb/DataFormatters/FormattersHelpers.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//===-- FormattersHelpers.h -------------------------------------*- C++ -*-===//
1+
//===-- FormattersHelpers.h --------------------------------------*- C++
2+
//-*-===//
23
//
34
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45
// See https://llvm.org/LICENSE.txt for license information.

lldb/include/lldb/DataFormatters/TypeSummary.h

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#include "lldb/Utility/Status.h"
2323
#include "lldb/Utility/StructuredData.h"
2424

25-
namespace llvm {
26-
class MemoryBuffer;
27-
}
28-
2925
namespace lldb_private {
3026
class TypeSummaryOptions {
3127
public:
@@ -48,7 +44,7 @@ class TypeSummaryOptions {
4844

4945
class TypeSummaryImpl {
5046
public:
51-
enum class Kind { eSummaryString, eScript, eBytecode, eCallback, eInternal };
47+
enum class Kind { eSummaryString, eScript, eCallback, eInternal };
5248

5349
virtual ~TypeSummaryImpl() = default;
5450

@@ -413,23 +409,6 @@ struct ScriptSummaryFormat : public TypeSummaryImpl {
413409
ScriptSummaryFormat(const ScriptSummaryFormat &) = delete;
414410
const ScriptSummaryFormat &operator=(const ScriptSummaryFormat &) = delete;
415411
};
416-
417-
/// A summary formatter that is defined in LLDB formmater bytecode.
418-
class BytecodeSummaryFormat : public TypeSummaryImpl {
419-
std::unique_ptr<llvm::MemoryBuffer> m_bytecode;
420-
421-
public:
422-
BytecodeSummaryFormat(const TypeSummaryImpl::Flags &flags,
423-
std::unique_ptr<llvm::MemoryBuffer> bytecode);
424-
bool FormatObject(ValueObject *valobj, std::string &dest,
425-
const TypeSummaryOptions &options) override;
426-
std::string GetDescription() override;
427-
std::string GetName() override;
428-
static bool classof(const TypeSummaryImpl *S) {
429-
return S->GetKind() == Kind::eBytecode;
430-
}
431-
};
432-
433412
} // namespace lldb_private
434413

435414
#endif // LLDB_DATAFORMATTERS_TYPESUMMARY_H

lldb/include/lldb/lldb-enumerations.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,6 @@ enum SectionType {
764764
eSectionTypeDWARFDebugTuIndex,
765765
eSectionTypeCTF,
766766
eSectionTypeLLDBTypeSummaries,
767-
eSectionTypeLLDBFormatters,
768767
eSectionTypeSwiftModules,
769768
};
770769

lldb/source/API/SBTypeSummary.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ bool SBTypeSummary::IsEqualTo(lldb::SBTypeSummary &rhs) {
343343
case TypeSummaryImpl::Kind::eCallback:
344344
return llvm::dyn_cast<CXXFunctionSummaryFormat>(m_opaque_sp.get()) ==
345345
llvm::dyn_cast<CXXFunctionSummaryFormat>(rhs.m_opaque_sp.get());
346-
case TypeSummaryImpl::Kind::eBytecode:
347346
case TypeSummaryImpl::Kind::eScript:
348347
if (IsFunctionCode() != rhs.IsFunctionCode())
349348
return false;

lldb/source/Core/Section.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,10 @@ const char *Section::GetTypeAsCString() const {
149149
return "ctf";
150150
case eSectionTypeLLDBTypeSummaries:
151151
return "lldb-type-summaries";
152-
case eSectionTypeLLDBFormatters:
153-
return "lldb-formatters";
154-
case eSectionTypeSwiftModules:
155-
return "swift-modules";
156152
case eSectionTypeOther:
157153
return "regular";
154+
case eSectionTypeSwiftModules:
155+
return "swift-modules";
158156
}
159157
return "unknown";
160158
}
@@ -462,7 +460,6 @@ bool Section::ContainsOnlyDebugInfo() const {
462460
case eSectionTypeDWARFGNUDebugAltLink:
463461
case eSectionTypeCTF:
464462
case eSectionTypeLLDBTypeSummaries:
465-
case eSectionTypeLLDBFormatters:
466463
case eSectionTypeSwiftModules:
467464
return true;
468465
}

lldb/source/DataFormatters/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ add_lldb_library(lldbDataFormatters NO_PLUGIN_DEPENDENCIES
55
FormatCache.cpp
66
FormatClasses.cpp
77
FormatManager.cpp
8-
FormatterBytecode.cpp
98
FormattersHelpers.cpp
10-
FormatterSection.cpp
119
LanguageCategory.cpp
1210
StringPrinter.cpp
1311
TypeCategory.cpp

0 commit comments

Comments
 (0)