summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangASTSource.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-01-18 23:32:05 +0000
committerSean Callanan <scallanan@apple.com>2011-01-18 23:32:05 +0000
commit2c777c4afb3055ad25b59eb852ed33f421fd6d10 (patch)
tree55e933c6e81440afa5489199112194ae4f266f86 /lldb/source/Expression/ClangASTSource.cpp
parentdac7a0174eb31f3f675ea550febe3d56d8f82089 (diff)
downloadbcm5719-llvm-2c777c4afb3055ad25b59eb852ed33f421fd6d10.tar.gz
bcm5719-llvm-2c777c4afb3055ad25b59eb852ed33f421fd6d10.zip
Updated to revision 123723 of LLVM, to bring in
support for minimal type import functionality. llvm-svn: 123787
Diffstat (limited to 'lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r--lldb/source/Expression/ClangASTSource.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp
index 3ef9e757965..b18536b5f9e 100644
--- a/lldb/source/Expression/ClangASTSource.cpp
+++ b/lldb/source/Expression/ClangASTSource.cpp
@@ -225,16 +225,14 @@ NameSearchContext::AddFunDecl (void *type)
clang::NamedDecl *
NameSearchContext::AddGenericFunDecl()
{
+ FunctionProtoType::ExtProtoInfo proto_info;
+
+ proto_info.Variadic = true;
+
QualType generic_function_type(m_ast_source.m_ast_context.getFunctionType (m_ast_source.m_ast_context.getSizeType(), // result
- NULL, // argument types
- 0, // number of arguments
- true, // variadic?
- 0, // type qualifiers
- false, // has exception specification?
- false, // has any exception specification?
- 0, // number of exceptions
- NULL, // exceptions
- FunctionType::ExtInfo())); // defaults for noreturn, regparm, calling convention
+ NULL, // argument types
+ 0, // number of arguments
+ proto_info));
return AddFunDecl(generic_function_type.getAsOpaquePtr());
}
OpenPOWER on IntegriCloud