LLDB  mainline
CompilerDecl.cpp
Go to the documentation of this file.
1 //===-- CompilerDecl.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 
11 #include "lldb/Symbol/TypeSystem.h"
12 
13 using namespace lldb_private;
14 
17 }
18 
21 }
22 
25 }
26 
29 }
30 
33 }
34 
37 }
38 
40  const lldb_private::CompilerDecl &rhs) {
41  return lhs.GetTypeSystem() == rhs.GetTypeSystem() &&
42  lhs.GetOpaqueDecl() == rhs.GetOpaqueDecl();
43 }
44 
46  const lldb_private::CompilerDecl &rhs) {
47  return lhs.GetTypeSystem() != rhs.GetTypeSystem() ||
48  lhs.GetOpaqueDecl() != rhs.GetOpaqueDecl();
49 }
CompilerType GetFunctionReturnType() const
A class that represents a running process on the host machine.
Represents a generic declaration context in a program.
ConstString GetMangledName() const
virtual CompilerType DeclGetFunctionReturnType(void *opaque_decl)
Definition: TypeSystem.cpp:165
bool operator==(const Address &lhs, const Address &rhs)
Definition: Address.cpp:986
virtual ConstString DeclGetName(void *opaque_decl)=0
CompilerType GetFunctionArgumentType(size_t arg_idx) const
CompilerDeclContext GetDeclContext() const
virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl, size_t arg_idx)
Definition: TypeSystem.cpp:171
TypeSystem * GetTypeSystem() const
Definition: CompilerDecl.h:56
virtual CompilerDeclContext DeclGetDeclContext(void *opaque_decl)
Definition: TypeSystem.cpp:161
bool operator!=(const Address &lhs, const Address &rhs)
Definition: Address.cpp:992
A uniqued constant string class.
Definition: ConstString.h:40
ConstString GetName() const
Represents a generic type in a programming language.
Definition: CompilerType.h:33
virtual ConstString DeclGetMangledName(void *opaque_decl)
Definition: TypeSystem.cpp:157
size_t GetNumFunctionArguments() const
virtual size_t DeclGetFunctionNumArguments(void *opaque_decl)
Definition: TypeSystem.cpp:169
void * GetOpaqueDecl() const
Definition: CompilerDecl.h:58
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28