Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / ExpressionParser / Clang / ClangASTMetadata.cpp
blob42933c78b02776ee45ef7258a3b0b458550d81f9
1 //===-- ClangASTMetadata.cpp ----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "Plugins/ExpressionParser/Clang/ClangASTMetadata.h"
10 #include "lldb/Utility/Stream.h"
12 using namespace lldb_private;
14 void ClangASTMetadata::Dump(Stream *s) {
15 lldb::user_id_t uid = GetUserID();
17 if (uid != LLDB_INVALID_UID) {
18 s->Printf("uid=0x%" PRIx64, uid);
21 uint64_t isa_ptr = GetISAPtr();
22 if (isa_ptr != 0) {
23 s->Printf("isa_ptr=0x%" PRIx64, isa_ptr);
26 const char *obj_ptr_name = GetObjectPtrName();
27 if (obj_ptr_name) {
28 s->Printf("obj_ptr_name=\"%s\" ", obj_ptr_name);
31 if (m_is_dynamic_cxx) {
32 s->Printf("is_dynamic_cxx=%i ", m_is_dynamic_cxx);
34 s->EOL();