summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp2
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index e747f5b56f0..3dab8339390 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -2762,7 +2762,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
if (!class_type.IsValid())
return;
- TypeSourceInfo *type_source_info = m_ast_context->CreateTypeSourceInfo(QualType::getFromOpaquePtr(class_type.GetOpaqueQualType()));
+ TypeSourceInfo *type_source_info = m_ast_context->getTrivialTypeSourceInfo(QualType::getFromOpaquePtr(class_type.GetOpaqueQualType()));
if (!type_source_info)
return;
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 1317805f219..e1bc3c2c0e2 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -2244,7 +2244,7 @@ ClangASTContext::CreateBaseClassSpecifier (clang_type_t base_class_type, AccessT
is_virtual,
base_of_class,
ConvertAccessTypeToAccessSpecifier (access),
- getASTContext()->CreateTypeSourceInfo (QualType::getFromOpaquePtr(base_class_type)),
+ getASTContext()->getTrivialTypeSourceInfo (QualType::getFromOpaquePtr(base_class_type)),
SourceLocation());
return NULL;
}
@@ -2452,9 +2452,9 @@ ClangASTContext::AddObjCClassProperty
{
clang::TypeSourceInfo *prop_type_source;
if (ivar_decl)
- prop_type_source = ast->CreateTypeSourceInfo (ivar_decl->getType());
+ prop_type_source = ast->getTrivialTypeSourceInfo (ivar_decl->getType());
else
- prop_type_source = ast->CreateTypeSourceInfo (QualType::getFromOpaquePtr(property_opaque_type));
+ prop_type_source = ast->getTrivialTypeSourceInfo (QualType::getFromOpaquePtr(property_opaque_type));
ObjCPropertyDecl *property_decl = ObjCPropertyDecl::Create(*ast,
class_interface_decl,
@@ -6314,7 +6314,7 @@ ClangASTContext::CreateTypedefType (const char *name, clang_type_t clang_type, D
SourceLocation(),
SourceLocation(),
name ? &identifier_table->get(name) : NULL, // Identifier
- ast->CreateTypeSourceInfo(qual_type));
+ ast->getTrivialTypeSourceInfo(qual_type));
//decl_ctx->addDecl (decl);
OpenPOWER on IntegriCloud