forked from OSchip/llvm-project
[lldb] Rename Type::ResolveClangType to Type::ResolveCompilerType
This is not specific to clang types. It operates on CompilerTypes in general.
This commit is contained in:
parent
48b8e3be51
commit
fc0ba63f86
|
@ -219,7 +219,7 @@ protected:
|
|||
|
||||
Type *GetEncodingType();
|
||||
|
||||
bool ResolveClangType(ResolveState compiler_type_resolve_state);
|
||||
bool ResolveCompilerType(ResolveState compiler_type_resolve_state);
|
||||
};
|
||||
|
||||
// the two classes here are used by the public API as a backend to the SBType
|
||||
|
|
|
@ -313,7 +313,7 @@ void Type::DumpValue(ExecutionContext *exe_ctx, Stream *s,
|
|||
const DataExtractor &data, uint32_t data_byte_offset,
|
||||
bool show_types, bool show_summary, bool verbose,
|
||||
lldb::Format format) {
|
||||
if (ResolveClangType(ResolveState::Forward)) {
|
||||
if (ResolveCompilerType(ResolveState::Forward)) {
|
||||
if (show_types) {
|
||||
s->PutChar('(');
|
||||
if (verbose)
|
||||
|
@ -466,7 +466,7 @@ bool Type::WriteToMemory(ExecutionContext *exe_ctx, lldb::addr_t addr,
|
|||
|
||||
const Declaration &Type::GetDeclaration() const { return m_decl; }
|
||||
|
||||
bool Type::ResolveClangType(ResolveState compiler_type_resolve_state) {
|
||||
bool Type::ResolveCompilerType(ResolveState compiler_type_resolve_state) {
|
||||
// TODO: This needs to consider the correct type system to use.
|
||||
Type *encoding_type = nullptr;
|
||||
if (!m_compiler_type.IsValid()) {
|
||||
|
@ -627,7 +627,7 @@ bool Type::ResolveClangType(ResolveState compiler_type_resolve_state) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
encoding_type->ResolveClangType(encoding_compiler_type_resolve_state);
|
||||
encoding_type->ResolveCompilerType(encoding_compiler_type_resolve_state);
|
||||
}
|
||||
}
|
||||
return m_compiler_type.IsValid();
|
||||
|
@ -642,17 +642,17 @@ uint32_t Type::GetEncodingMask() {
|
|||
}
|
||||
|
||||
CompilerType Type::GetFullCompilerType() {
|
||||
ResolveClangType(ResolveState::Full);
|
||||
ResolveCompilerType(ResolveState::Full);
|
||||
return m_compiler_type;
|
||||
}
|
||||
|
||||
CompilerType Type::GetLayoutCompilerType() {
|
||||
ResolveClangType(ResolveState::Layout);
|
||||
ResolveCompilerType(ResolveState::Layout);
|
||||
return m_compiler_type;
|
||||
}
|
||||
|
||||
CompilerType Type::GetForwardCompilerType() {
|
||||
ResolveClangType(ResolveState::Forward);
|
||||
ResolveCompilerType(ResolveState::Forward);
|
||||
return m_compiler_type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue