1 //===-- CompilerType.cpp ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Symbol/CompilerType.h"
12 #include "lldb/Core/ConstString.h"
13 #include "lldb/Core/DataBufferHeap.h"
14 #include "lldb/Core/DataExtractor.h"
15 #include "lldb/Core/Debugger.h"
16 #include "lldb/Core/Scalar.h"
17 #include "lldb/Core/Stream.h"
18 #include "lldb/Core/StreamFile.h"
19 #include "lldb/Core/StreamString.h"
20 #include "lldb/Symbol/ClangASTContext.h"
21 #include "lldb/Symbol/ClangExternalASTSourceCommon.h"
22 #include "lldb/Symbol/Type.h"
23 #include "lldb/Target/ExecutionContext.h"
24 #include "lldb/Target/Process.h"
30 using namespace lldb_private;
32 CompilerType::CompilerType (TypeSystem *type_system,
33 lldb::opaque_compiler_type_t type) :
35 m_type_system (type_system)
39 CompilerType::CompilerType (clang::ASTContext *ast,
40 clang::QualType qual_type) :
41 m_type (qual_type.getAsOpaquePtr()),
42 m_type_system (ClangASTContext::GetASTContext(ast))
44 #ifdef LLDB_CONFIGURATION_DEBUG
46 assert(m_type_system != nullptr);
50 CompilerType::~CompilerType()
54 //----------------------------------------------------------------------
56 //----------------------------------------------------------------------
59 CompilerType::IsAggregateType () const
62 return m_type_system->IsAggregateType(m_type);
67 CompilerType::IsAnonymousType () const
70 return m_type_system->IsAnonymousType(m_type);
75 CompilerType::IsArrayType (CompilerType *element_type_ptr,
77 bool *is_incomplete) const
80 return m_type_system->IsArrayType(m_type, element_type_ptr, size, is_incomplete);
83 element_type_ptr->Clear();
87 *is_incomplete = false;
92 CompilerType::IsVectorType (CompilerType *element_type,
96 return m_type_system->IsVectorType(m_type, element_type, size);
101 CompilerType::IsRuntimeGeneratedType () const
104 return m_type_system->IsRuntimeGeneratedType(m_type);
109 CompilerType::IsCharType () const
112 return m_type_system->IsCharType(m_type);
118 CompilerType::IsCompleteType () const
121 return m_type_system->IsCompleteType(m_type);
126 CompilerType::IsConst() const
129 return m_type_system->IsConst(m_type);
134 CompilerType::IsCStringType (uint32_t &length) const
137 return m_type_system->IsCStringType(m_type, length);
142 CompilerType::IsFunctionType (bool *is_variadic_ptr) const
145 return m_type_system->IsFunctionType(m_type, is_variadic_ptr);
149 // Used to detect "Homogeneous Floating-point Aggregates"
151 CompilerType::IsHomogeneousAggregate (CompilerType* base_type_ptr) const
154 return m_type_system->IsHomogeneousAggregate(m_type, base_type_ptr);
159 CompilerType::GetNumberOfFunctionArguments () const
162 return m_type_system->GetNumberOfFunctionArguments(m_type);
167 CompilerType::GetFunctionArgumentAtIndex (const size_t index) const
170 return m_type_system->GetFunctionArgumentAtIndex(m_type, index);
171 return CompilerType();
175 CompilerType::IsFunctionPointerType () const
178 return m_type_system->IsFunctionPointerType(m_type);
184 CompilerType::IsIntegerType (bool &is_signed) const
187 return m_type_system->IsIntegerType(m_type, is_signed);
192 CompilerType::IsPointerType (CompilerType *pointee_type) const
196 return m_type_system->IsPointerType(m_type, pointee_type);
199 pointee_type->Clear();
205 CompilerType::IsPointerOrReferenceType (CompilerType *pointee_type) const
209 return m_type_system->IsPointerOrReferenceType(m_type, pointee_type);
212 pointee_type->Clear();
218 CompilerType::IsReferenceType (CompilerType *pointee_type, bool* is_rvalue) const
222 return m_type_system->IsReferenceType(m_type, pointee_type, is_rvalue);
225 pointee_type->Clear();
230 CompilerType::ShouldTreatScalarValueAsAddress () const
233 return m_type_system->ShouldTreatScalarValueAsAddress(m_type);
238 CompilerType::IsFloatingPointType (uint32_t &count, bool &is_complex) const
242 return m_type_system->IsFloatingPointType(m_type, count, is_complex);
251 CompilerType::IsDefined() const
254 return m_type_system->IsDefined(m_type);
259 CompilerType::IsPolymorphicClass () const
263 return m_type_system->IsPolymorphicClass(m_type);
269 CompilerType::IsPossibleDynamicType (CompilerType *dynamic_pointee_type,
270 bool check_cplusplus,
271 bool check_objc) const
274 return m_type_system->IsPossibleDynamicType(m_type, dynamic_pointee_type, check_cplusplus, check_objc);
280 CompilerType::IsScalarType () const
285 return m_type_system->IsScalarType(m_type);
289 CompilerType::IsTypedefType () const
293 return m_type_system->IsTypedefType(m_type);
297 CompilerType::IsVoidType () const
301 return m_type_system->IsVoidType(m_type);
305 CompilerType::IsPointerToScalarType () const
310 return IsPointerType() && GetPointeeType().IsScalarType();
314 CompilerType::IsArrayOfScalarType () const
316 CompilerType element_type;
317 if (IsArrayType(&element_type, nullptr, nullptr))
318 return element_type.IsScalarType();
323 CompilerType::IsBeingDefined () const
327 return m_type_system->IsBeingDefined(m_type);
330 //----------------------------------------------------------------------
332 //----------------------------------------------------------------------
335 CompilerType::GetCompleteType () const
339 return m_type_system->GetCompleteType(m_type);
342 //----------------------------------------------------------------------
343 // AST related queries
344 //----------------------------------------------------------------------
346 CompilerType::GetPointerByteSize () const
349 return m_type_system->GetPointerByteSize();
354 CompilerType::GetConstQualifiedTypeName () const
356 return GetConstTypeName ();
360 CompilerType::GetConstTypeName () const
364 ConstString type_name (GetTypeName());
368 return ConstString("<invalid>");
372 CompilerType::GetTypeName () const
376 return m_type_system->GetTypeName(m_type);
378 return ConstString("<invalid>");
382 CompilerType::GetDisplayTypeName () const
384 return GetTypeName();
388 CompilerType::GetTypeInfo (CompilerType *pointee_or_element_compiler_type) const
393 return m_type_system->GetTypeInfo(m_type, pointee_or_element_compiler_type);
399 CompilerType::GetMinimumLanguage ()
402 return lldb::eLanguageTypeC;
404 return m_type_system->GetMinimumLanguage(m_type);
408 CompilerType::GetTypeClass () const
411 return lldb::eTypeClassInvalid;
413 return m_type_system->GetTypeClass(m_type);
418 CompilerType::SetCompilerType (TypeSystem* type_system, lldb::opaque_compiler_type_t type)
420 m_type_system = type_system;
425 CompilerType::SetCompilerType (clang::ASTContext *ast, clang::QualType qual_type)
427 m_type_system = ClangASTContext::GetASTContext(ast);
428 m_type = qual_type.getAsOpaquePtr();
432 CompilerType::GetTypeQualifiers() const
435 return m_type_system->GetTypeQualifiers(m_type);
439 //----------------------------------------------------------------------
440 // Creating related types
441 //----------------------------------------------------------------------
444 CompilerType::GetArrayElementType (uint64_t *stride) const
448 return m_type_system->GetArrayElementType(m_type, stride);
451 return CompilerType();
455 CompilerType::GetCanonicalType () const
458 return m_type_system->GetCanonicalType(m_type);
459 return CompilerType();
463 CompilerType::GetFullyUnqualifiedType () const
466 return m_type_system->GetFullyUnqualifiedType(m_type);
467 return CompilerType();
472 CompilerType::GetFunctionArgumentCount () const
476 return m_type_system->GetFunctionArgumentCount(m_type);
482 CompilerType::GetFunctionArgumentTypeAtIndex (size_t idx) const
486 return m_type_system->GetFunctionArgumentTypeAtIndex(m_type, idx);
488 return CompilerType();
492 CompilerType::GetFunctionReturnType () const
496 return m_type_system->GetFunctionReturnType(m_type);
498 return CompilerType();
502 CompilerType::GetNumMemberFunctions () const
506 return m_type_system->GetNumMemberFunctions(m_type);
511 TypeMemberFunctionImpl
512 CompilerType::GetMemberFunctionAtIndex (size_t idx)
516 return m_type_system->GetMemberFunctionAtIndex(m_type, idx);
518 return TypeMemberFunctionImpl();
522 CompilerType::GetNonReferenceType () const
525 return m_type_system->GetNonReferenceType(m_type);
526 return CompilerType();
530 CompilerType::GetPointeeType () const
534 return m_type_system->GetPointeeType(m_type);
536 return CompilerType();
540 CompilerType::GetPointerType () const
544 return m_type_system->GetPointerType(m_type);
546 return CompilerType();
550 CompilerType::GetLValueReferenceType () const
553 return m_type_system->GetLValueReferenceType(m_type);
555 return CompilerType();
559 CompilerType::GetRValueReferenceType () const
562 return m_type_system->GetRValueReferenceType(m_type);
564 return CompilerType();
568 CompilerType::AddConstModifier () const
571 return m_type_system->AddConstModifier(m_type);
573 return CompilerType();
577 CompilerType::AddVolatileModifier () const
580 return m_type_system->AddVolatileModifier(m_type);
582 return CompilerType();
586 CompilerType::AddRestrictModifier () const
589 return m_type_system->AddRestrictModifier(m_type);
591 return CompilerType();
595 CompilerType::CreateTypedef (const char *name, const CompilerDeclContext &decl_ctx) const
598 return m_type_system->CreateTypedef(m_type, name, decl_ctx);
600 return CompilerType();
604 CompilerType::GetTypedefedType () const
607 return m_type_system->GetTypedefedType(m_type);
609 return CompilerType();
612 //----------------------------------------------------------------------
613 // Create related types using the current type's AST
614 //----------------------------------------------------------------------
617 CompilerType::GetBasicTypeFromAST (lldb::BasicType basic_type) const
620 return m_type_system->GetBasicTypeFromAST(basic_type);
621 return CompilerType();
623 //----------------------------------------------------------------------
624 // Exploring the type
625 //----------------------------------------------------------------------
628 CompilerType::GetBitSize (ExecutionContextScope *exe_scope) const
632 return m_type_system->GetBitSize(m_type, exe_scope);
638 CompilerType::GetByteSize (ExecutionContextScope *exe_scope) const
640 return (GetBitSize (exe_scope) + 7) / 8;
645 CompilerType::GetTypeBitAlign () const
648 return m_type_system->GetTypeBitAlign(m_type);
654 CompilerType::GetEncoding (uint64_t &count) const
657 return lldb::eEncodingInvalid;
659 return m_type_system->GetEncoding(m_type, count);
663 CompilerType::GetFormat () const
666 return lldb::eFormatDefault;
668 return m_type_system->GetFormat(m_type);
672 CompilerType::GetNumChildren (bool omit_empty_base_classes) const
676 return m_type_system->GetNumChildren(m_type, omit_empty_base_classes);
680 CompilerType::GetBasicTypeEnumeration () const
683 return m_type_system->GetBasicTypeEnumeration(m_type);
684 return eBasicTypeInvalid;
688 CompilerType::ForEachEnumerator (std::function <bool (const CompilerType &integer_type, const ConstString &name, const llvm::APSInt &value)> const &callback) const
691 return m_type_system->ForEachEnumerator (m_type, callback);
696 CompilerType::GetNumFields () const
700 return m_type_system->GetNumFields(m_type);
704 CompilerType::GetFieldAtIndex (size_t idx,
706 uint64_t *bit_offset_ptr,
707 uint32_t *bitfield_bit_size_ptr,
708 bool *is_bitfield_ptr) const
711 return CompilerType();
712 return m_type_system->GetFieldAtIndex(m_type, idx, name, bit_offset_ptr, bitfield_bit_size_ptr, is_bitfield_ptr);
716 CompilerType::GetNumDirectBaseClasses () const
719 return m_type_system->GetNumDirectBaseClasses (m_type);
724 CompilerType::GetNumVirtualBaseClasses () const
727 return m_type_system->GetNumVirtualBaseClasses (m_type);
732 CompilerType::GetDirectBaseClassAtIndex (size_t idx, uint32_t *bit_offset_ptr) const
735 return m_type_system->GetDirectBaseClassAtIndex (m_type, idx, bit_offset_ptr);
736 return CompilerType();
740 CompilerType::GetVirtualBaseClassAtIndex (size_t idx, uint32_t *bit_offset_ptr) const
743 return m_type_system->GetVirtualBaseClassAtIndex (m_type, idx, bit_offset_ptr);
744 return CompilerType();
748 CompilerType::GetIndexOfFieldWithName (const char* name,
749 CompilerType* field_compiler_type_ptr,
750 uint64_t *bit_offset_ptr,
751 uint32_t *bitfield_bit_size_ptr,
752 bool *is_bitfield_ptr) const
754 unsigned count = GetNumFields();
755 std::string field_name;
756 for (unsigned index = 0; index < count; index++)
758 CompilerType field_compiler_type (GetFieldAtIndex(index, field_name, bit_offset_ptr, bitfield_bit_size_ptr, is_bitfield_ptr));
759 if (strcmp(field_name.c_str(), name) == 0)
761 if (field_compiler_type_ptr)
762 *field_compiler_type_ptr = field_compiler_type;
771 CompilerType::GetChildCompilerTypeAtIndex (ExecutionContext *exe_ctx,
773 bool transparent_pointers,
774 bool omit_empty_base_classes,
775 bool ignore_array_bounds,
776 std::string& child_name,
777 uint32_t &child_byte_size,
778 int32_t &child_byte_offset,
779 uint32_t &child_bitfield_bit_size,
780 uint32_t &child_bitfield_bit_offset,
781 bool &child_is_base_class,
782 bool &child_is_deref_of_parent,
784 uint64_t &language_flags) const
787 return CompilerType();
788 return m_type_system->GetChildCompilerTypeAtIndex(m_type,
791 transparent_pointers,
792 omit_empty_base_classes,
797 child_bitfield_bit_size,
798 child_bitfield_bit_offset,
800 child_is_deref_of_parent,
805 // Look for a child member (doesn't include base classes, but it does include
806 // their members) in the type hierarchy. Returns an index path into "clang_type"
807 // on how to reach the appropriate member.
826 // If we have a clang type that describes "class C", and we wanted to looked
829 // With omit_empty_base_classes == false we would get an integer array back with:
831 // The first index 1 is the child index for "class A" within class C
832 // The second index 1 is the child index for "m_b" within class A
834 // With omit_empty_base_classes == true we would get an integer array back with:
836 // The first index 0 is the child index for "class A" within class C (since class B doesn't have any members it doesn't count)
837 // The second index 1 is the child index for "m_b" within class A
840 CompilerType::GetIndexOfChildMemberWithName (const char *name,
841 bool omit_empty_base_classes,
842 std::vector<uint32_t>& child_indexes) const
844 if (IsValid() && name && name[0])
846 return m_type_system->GetIndexOfChildMemberWithName(m_type, name, omit_empty_base_classes, child_indexes);
852 CompilerType::GetNumTemplateArguments () const
856 return m_type_system->GetNumTemplateArguments(m_type);
862 CompilerType::GetTemplateArgument (size_t idx,
863 lldb::TemplateArgumentKind &kind) const
867 return m_type_system->GetTemplateArgument(m_type, idx, kind);
869 return CompilerType();
873 CompilerType::GetTypeForFormatters () const
876 return m_type_system->GetTypeForFormatters(m_type);
877 return CompilerType();
881 CompilerType::ShouldPrintAsOneLiner (ValueObject* valobj) const
884 return m_type_system->ShouldPrintAsOneLiner(m_type, valobj);
885 return eLazyBoolCalculate;
889 CompilerType::IsMeaninglessWithoutDynamicResolution () const
892 return m_type_system->IsMeaninglessWithoutDynamicResolution(m_type);
896 // Get the index of the child of "clang_type" whose name matches. This function
897 // doesn't descend into the children, but only looks one level deep and name
898 // matches can include base class names.
901 CompilerType::GetIndexOfChildWithName (const char *name, bool omit_empty_base_classes) const
903 if (IsValid() && name && name[0])
905 return m_type_system->GetIndexOfChildWithName(m_type, name, omit_empty_base_classes);
911 CompilerType::ConvertStringToFloatValue (const char *s, uint8_t *dst, size_t dst_size) const
914 return m_type_system->ConvertStringToFloatValue(m_type, s, dst, dst_size);
920 //----------------------------------------------------------------------
922 //----------------------------------------------------------------------
923 #define DEPTH_INCREMENT 2
926 CompilerType::DumpValue (ExecutionContext *exe_ctx,
929 const lldb_private::DataExtractor &data,
930 lldb::offset_t data_byte_offset,
931 size_t data_byte_size,
932 uint32_t bitfield_bit_size,
933 uint32_t bitfield_bit_offset,
941 m_type_system->DumpValue(m_type, exe_ctx, s, format, data, data_byte_offset, data_byte_size, bitfield_bit_size, bitfield_bit_offset, show_types, show_summary, verbose, depth);
948 CompilerType::DumpTypeValue (Stream *s,
950 const lldb_private::DataExtractor &data,
951 lldb::offset_t byte_offset,
953 uint32_t bitfield_bit_size,
954 uint32_t bitfield_bit_offset,
955 ExecutionContextScope *exe_scope)
959 return m_type_system->DumpTypeValue(m_type, s, format, data, byte_offset, byte_size, bitfield_bit_size, bitfield_bit_offset, exe_scope);
965 CompilerType::DumpSummary (ExecutionContext *exe_ctx,
967 const lldb_private::DataExtractor &data,
968 lldb::offset_t data_byte_offset,
969 size_t data_byte_size)
972 m_type_system->DumpSummary(m_type, exe_ctx, s, data, data_byte_offset, data_byte_size);
976 CompilerType::DumpTypeDescription () const
979 m_type_system->DumpTypeDescription(m_type);
983 CompilerType::DumpTypeDescription (Stream *s) const
987 m_type_system->DumpTypeDescription(m_type, s);
992 CompilerType::GetValueAsScalar (const lldb_private::DataExtractor &data,
993 lldb::offset_t data_byte_offset,
994 size_t data_byte_size,
1000 if (IsAggregateType ())
1002 return false; // Aggregate types don't have scalar values
1007 lldb::Encoding encoding = GetEncoding (count);
1009 if (encoding == lldb::eEncodingInvalid || count != 1)
1012 const uint64_t byte_size = GetByteSize(nullptr);
1013 lldb::offset_t offset = data_byte_offset;
1016 case lldb::eEncodingInvalid:
1018 case lldb::eEncodingVector:
1020 case lldb::eEncodingUint:
1021 if (byte_size <= sizeof(unsigned long long))
1023 uint64_t uval64 = data.GetMaxU64 (&offset, byte_size);
1024 if (byte_size <= sizeof(unsigned int))
1026 value = (unsigned int)uval64;
1029 else if (byte_size <= sizeof(unsigned long))
1031 value = (unsigned long)uval64;
1034 else if (byte_size <= sizeof(unsigned long long))
1036 value = (unsigned long long )uval64;
1044 case lldb::eEncodingSint:
1045 if (byte_size <= sizeof(long long))
1047 int64_t sval64 = data.GetMaxS64 (&offset, byte_size);
1048 if (byte_size <= sizeof(int))
1050 value = (int)sval64;
1053 else if (byte_size <= sizeof(long))
1055 value = (long)sval64;
1058 else if (byte_size <= sizeof(long long))
1060 value = (long long )sval64;
1068 case lldb::eEncodingIEEE754:
1069 if (byte_size <= sizeof(long double))
1073 if (byte_size == sizeof(float))
1075 if (sizeof(float) == sizeof(uint32_t))
1077 u32 = data.GetU32(&offset);
1078 value = *((float *)&u32);
1081 else if (sizeof(float) == sizeof(uint64_t))
1083 u64 = data.GetU64(&offset);
1084 value = *((float *)&u64);
1089 if (byte_size == sizeof(double))
1091 if (sizeof(double) == sizeof(uint32_t))
1093 u32 = data.GetU32(&offset);
1094 value = *((double *)&u32);
1097 else if (sizeof(double) == sizeof(uint64_t))
1099 u64 = data.GetU64(&offset);
1100 value = *((double *)&u64);
1105 if (byte_size == sizeof(long double))
1107 if (sizeof(long double) == sizeof(uint32_t))
1109 u32 = data.GetU32(&offset);
1110 value = *((long double *)&u32);
1113 else if (sizeof(long double) == sizeof(uint64_t))
1115 u64 = data.GetU64(&offset);
1116 value = *((long double *)&u64);
1128 CompilerType::SetValueFromScalar (const Scalar &value, Stream &strm)
1133 // Aggregate types don't have scalar values
1134 if (!IsAggregateType ())
1136 strm.GetFlags().Set(Stream::eBinary);
1138 lldb::Encoding encoding = GetEncoding (count);
1140 if (encoding == lldb::eEncodingInvalid || count != 1)
1143 const uint64_t bit_width = GetBitSize(nullptr);
1144 // This function doesn't currently handle non-byte aligned assignments
1145 if ((bit_width % 8) != 0)
1148 const uint64_t byte_size = (bit_width + 7 ) / 8;
1151 case lldb::eEncodingInvalid:
1153 case lldb::eEncodingVector:
1155 case lldb::eEncodingUint:
1158 case 1: strm.PutHex8(value.UInt()); return true;
1159 case 2: strm.PutHex16(value.UInt()); return true;
1160 case 4: strm.PutHex32(value.UInt()); return true;
1161 case 8: strm.PutHex64(value.ULongLong()); return true;
1167 case lldb::eEncodingSint:
1170 case 1: strm.PutHex8(value.SInt()); return true;
1171 case 2: strm.PutHex16(value.SInt()); return true;
1172 case 4: strm.PutHex32(value.SInt()); return true;
1173 case 8: strm.PutHex64(value.SLongLong()); return true;
1179 case lldb::eEncodingIEEE754:
1180 if (byte_size <= sizeof(long double))
1182 if (byte_size == sizeof(float))
1184 strm.PutFloat(value.Float());
1188 if (byte_size == sizeof(double))
1190 strm.PutDouble(value.Double());
1194 if (byte_size == sizeof(long double))
1196 strm.PutDouble(value.LongDouble());
1207 CompilerType::ReadFromMemory (lldb_private::ExecutionContext *exe_ctx,
1209 AddressType address_type,
1210 lldb_private::DataExtractor &data)
1215 // Can't convert a file address to anything valid without more
1216 // context (which Module it came from)
1217 if (address_type == eAddressTypeFile)
1220 if (!GetCompleteType())
1223 const uint64_t byte_size = GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL);
1224 if (data.GetByteSize() < byte_size)
1226 lldb::DataBufferSP data_sp(new DataBufferHeap (byte_size, '\0'));
1227 data.SetData(data_sp);
1230 uint8_t* dst = const_cast<uint8_t*>(data.PeekData(0, byte_size));
1233 if (address_type == eAddressTypeHost)
1237 // The address is an address in this process, so just copy it
1238 memcpy (dst, (uint8_t*)nullptr + addr, byte_size);
1243 Process *process = nullptr;
1245 process = exe_ctx->GetProcessPtr();
1249 return process->ReadMemory(addr, dst, byte_size, error) == byte_size;
1257 CompilerType::WriteToMemory (lldb_private::ExecutionContext *exe_ctx,
1259 AddressType address_type,
1260 StreamString &new_value)
1265 // Can't convert a file address to anything valid without more
1266 // context (which Module it came from)
1267 if (address_type == eAddressTypeFile)
1270 if (!GetCompleteType())
1273 const uint64_t byte_size = GetByteSize(exe_ctx ? exe_ctx->GetBestExecutionContextScope() : NULL);
1277 if (address_type == eAddressTypeHost)
1279 // The address is an address in this process, so just copy it
1280 memcpy ((void *)addr, new_value.GetData(), byte_size);
1285 Process *process = nullptr;
1287 process = exe_ctx->GetProcessPtr();
1291 return process->WriteMemory(addr, new_value.GetData(), byte_size, error) == byte_size;
1298 //clang::CXXRecordDecl *
1299 //CompilerType::GetAsCXXRecordDecl (lldb::opaque_compiler_type_t opaque_compiler_qual_type)
1301 // if (opaque_compiler_qual_type)
1302 // return clang::QualType::getFromOpaquePtr(opaque_compiler_qual_type)->getAsCXXRecordDecl();
1307 lldb_private::operator == (const lldb_private::CompilerType &lhs, const lldb_private::CompilerType &rhs)
1309 return lhs.GetTypeSystem() == rhs.GetTypeSystem() && lhs.GetOpaqueQualType() == rhs.GetOpaqueQualType();
1314 lldb_private::operator != (const lldb_private::CompilerType &lhs, const lldb_private::CompilerType &rhs)
1316 return lhs.GetTypeSystem() != rhs.GetTypeSystem() || lhs.GetOpaqueQualType() != rhs.GetOpaqueQualType();