Exemple #1
0
 Value::Value(clang::QualType clangTy, Interpreter& Interp):
   m_StorageType(determineStorageType(clangTy)),
   m_Type(clangTy.getAsOpaquePtr()),
   m_Interpreter(&Interp) {
   if (needsManagedAllocation())
     ManagedAllocate();
 }
Exemple #2
0
CompilerType::CompilerType(clang::ASTContext *ast, clang::QualType qual_type)
    : m_type(qual_type.getAsOpaquePtr()),
      m_type_system(ClangASTContext::GetASTContext(ast)) {
#ifdef LLDB_CONFIGURATION_DEBUG
  if (m_type)
    assert(m_type_system != nullptr);
#endif
}
Exemple #3
0
void
CompilerType::SetCompilerType (clang::ASTContext *ast, clang::QualType qual_type)
{
    m_type_system = ClangASTContext::GetASTContext(ast);
    m_type = qual_type.getAsOpaquePtr();
}
Exemple #4
0
CompilerType::CompilerType(clang::ASTContext *ast, clang::QualType qual_type)
    : m_type(qual_type.getAsOpaquePtr()),
      m_type_system(ClangASTContext::GetASTContext(ast)) {
  if (m_type)
    assert(m_type_system != nullptr);
}
Exemple #5
0
Value::Value(clang::QualType clangTy, Interpreter* Interp):
  m_Type(clangTy.getAsOpaquePtr()) {
  if (needsManagedAllocation())
    ManagedAllocate(Interp);
}