LLDB  mainline
ClangASTMetadata.cpp
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
8 
10 #include "lldb/Utility/Stream.h"
11 
12 using namespace lldb_private;
13 
15  lldb::user_id_t uid = GetUserID();
16 
17  if (uid != LLDB_INVALID_UID) {
18  s->Printf("uid=0x%" PRIx64, uid);
19  }
20 
21  uint64_t isa_ptr = GetISAPtr();
22  if (isa_ptr != 0) {
23  s->Printf("isa_ptr=0x%" PRIx64, isa_ptr);
24  }
25 
26  const char *obj_ptr_name = GetObjectPtrName();
27  if (obj_ptr_name) {
28  s->Printf("obj_ptr_name=\"%s\" ", obj_ptr_name);
29  }
30 
31  if (m_is_dynamic_cxx) {
32  s->Printf("is_dynamic_cxx=%i ", m_is_dynamic_cxx);
33  }
34  s->EOL();
35 }
LLDB_INVALID_UID
#define LLDB_INVALID_UID
Definition: lldb-defines.h:92
lldb_private::ClangASTMetadata::m_is_dynamic_cxx
bool m_is_dynamic_cxx
Definition: ClangASTMetadata.h:105
lldb_private::Stream
Definition: Stream.h:28
ClangASTMetadata.h
lldb_private::ClangASTMetadata::GetISAPtr
uint64_t GetISAPtr() const
Definition: ClangASTMetadata.h:48
lldb_private::ClangASTMetadata::GetObjectPtrName
const char * GetObjectPtrName() const
Definition: ClangASTMetadata.h:75
lldb_private::ClangASTMetadata::GetUserID
lldb::user_id_t GetUserID() const
Definition: ClangASTMetadata.h:35
lldb_private::Stream::EOL
size_t EOL()
Output and End of Line character to the stream.
Definition: Stream.cpp:128
lldb_private::Stream::Printf
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition: Stream.cpp:107
lldb::user_id_t
uint64_t user_id_t
Definition: lldb-types.h:84
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
Stream.h
lldb_private::ClangASTMetadata::Dump
void Dump(Stream *s)
Definition: ClangASTMetadata.cpp:14