
Summary: This change represents the move of ClangASTImporter, ClangASTMetadata, ClangExternalASTSourceCallbacks, ClangUtil, CxxModuleHandler, and TypeSystemClang from lldbSource to lldbPluginExpressionParserClang.h This explicitly removes knowledge of clang internals from lldbSymbol, moving towards a more generic core implementation of lldb. Reviewers: JDevlieghere, davide, aprantl, teemperor, clayborg, labath, jingham, shafik Subscribers: emaste, mgorny, arphaman, jfb, usaxena95, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D73661
36 lines
986 B
C++
36 lines
986 B
C++
//===-- ClangASTMetadata.cpp ----------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "Plugins/ExpressionParser/Clang/ClangASTMetadata.h"
|
|
#include "lldb/Utility/Stream.h"
|
|
|
|
using namespace lldb_private;
|
|
|
|
void ClangASTMetadata::Dump(Stream *s) {
|
|
lldb::user_id_t uid = GetUserID();
|
|
|
|
if (uid != LLDB_INVALID_UID) {
|
|
s->Printf("uid=0x%" PRIx64, uid);
|
|
}
|
|
|
|
uint64_t isa_ptr = GetISAPtr();
|
|
if (isa_ptr != 0) {
|
|
s->Printf("isa_ptr=0x%" PRIx64, isa_ptr);
|
|
}
|
|
|
|
const char *obj_ptr_name = GetObjectPtrName();
|
|
if (obj_ptr_name) {
|
|
s->Printf("obj_ptr_name=\"%s\" ", obj_ptr_name);
|
|
}
|
|
|
|
if (m_is_dynamic_cxx) {
|
|
s->Printf("is_dynamic_cxx=%i ", m_is_dynamic_cxx);
|
|
}
|
|
s->EOL();
|
|
}
|