Skip to content

Commit af3c5a7

Browse files
committed
Revert "[LLDB] Add more helper functions to CompilerType class."
PR 73467 was committed by accident. This undoes the premature commit.
1 parent 1b70587 commit af3c5a7

File tree

2 files changed

+21
-320
lines changed

2 files changed

+21
-320
lines changed

lldb/include/lldb/Symbol/CompilerType.h

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ class CompilerType {
112112

113113
/// Tests.
114114
/// \{
115-
explicit operator bool() const { return m_type_system.lock() && m_type; }
115+
explicit operator bool() const {
116+
return m_type_system.lock() && m_type;
117+
}
116118

117119
bool IsValid() const { return (bool)*this; }
118120

@@ -192,54 +194,6 @@ class CompilerType {
192194
bool IsTypedefType() const;
193195

194196
bool IsVoidType() const;
195-
196-
bool IsSmartPtrType() const;
197-
198-
bool IsInteger() const;
199-
200-
bool IsFloat() const;
201-
202-
bool IsEnumerationType() const;
203-
204-
bool IsUnscopedEnumerationType() const;
205-
206-
bool IsIntegerOrUnscopedEnumerationType() const;
207-
208-
bool IsSigned() const;
209-
210-
bool IsNullPtrType() const;
211-
212-
bool IsBoolean() const;
213-
214-
bool IsEnumerationIntegerTypeSigned() const;
215-
216-
bool IsScalarOrUnscopedEnumerationType() const;
217-
218-
bool IsPromotableIntegerType() const;
219-
220-
bool IsPointerToVoid() const;
221-
222-
bool IsRecordType() const;
223-
224-
bool IsVirtualBase(CompilerType target_base, CompilerType *virtual_base,
225-
bool carry_virtual = false) const;
226-
227-
bool IsContextuallyConvertibleToBool() const;
228-
229-
bool IsBasicType() const;
230-
231-
std::string TypeDescription();
232-
233-
bool CompareTypes(CompilerType rhs) const;
234-
235-
const char *GetTypeTag();
236-
237-
uint32_t GetNumberOfNonEmptyBaseClasses();
238-
239-
CompilerType GetTemplateArgumentType(uint32_t idx);
240-
241-
CompilerType GetSmartPtrPointeeType();
242-
243197
/// \}
244198

245199
/// Type Completion.
@@ -482,8 +436,8 @@ class CompilerType {
482436
ExecutionContextScope *exe_scope);
483437

484438
/// Dump to stdout.
485-
void DumpTypeDescription(
486-
lldb::DescriptionLevel level = lldb::eDescriptionLevelFull) const;
439+
void DumpTypeDescription(lldb::DescriptionLevel level =
440+
lldb::eDescriptionLevelFull) const;
487441

488442
/// Print a description of the type to a stream. The exact implementation
489443
/// varies, but the expectation is that eDescriptionLevelFull returns a

0 commit comments

Comments
 (0)