summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-26 16:23:32 +0000
committeremaste <emaste@FreeBSD.org>2014-11-26 16:23:32 +0000
commitbfd4c39c61ae9b29542625bb12b6f7f4b1f8c727 (patch)
tree63b6aa0e8c69f60190c2cde55eb944146bd1a0a3 /contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
parent5340ca17abf7709215d1616620ef13a4e71ec290 (diff)
downloadFreeBSD-src-bfd4c39c61ae9b29542625bb12b6f7f4b1f8c727.zip
FreeBSD-src-bfd4c39c61ae9b29542625bb12b6f7f4b1f8c727.tar.gz
Revert Clang 3.4 API compatibility changes
Re-apply previously reverted changes to restore LLDB to parity with the last update as of upstream revision 202189. This is the first step an LLDB update to correspond with the Clang 3.5 import and re-applies the following upstream revisions: SVN git 199408 3ad0a1a1 199689 05be72c3 200085 9ad47a93 Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp b/contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
index 23bca54..853d102 100644
--- a/contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
+++ b/contrib/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
@@ -1778,14 +1778,14 @@ NameSearchContext::AddFunDecl (const ClangASTType &type)
if (func_proto_type)
{
- unsigned NumArgs = func_proto_type->getNumArgs();
+ unsigned NumArgs = func_proto_type->getNumParams();
unsigned ArgIndex;
SmallVector<ParmVarDecl *, 5> parm_var_decls;
for (ArgIndex = 0; ArgIndex < NumArgs; ++ArgIndex)
{
- QualType arg_qual_type (func_proto_type->getArgType(ArgIndex));
+ QualType arg_qual_type (func_proto_type->getParamType(ArgIndex));
parm_var_decls.push_back(ParmVarDecl::Create (*ast,
const_cast<DeclContext*>(m_decl_context),
OpenPOWER on IntegriCloud