aboutsummaryrefslogtreecommitdiffstats
path: root/source/Symbol/DeclVendor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Symbol/DeclVendor.cpp')
-rw-r--r--source/Symbol/DeclVendor.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/Symbol/DeclVendor.cpp b/source/Symbol/DeclVendor.cpp
index 0a912a2fd214..9ccf422e3bea 100644
--- a/source/Symbol/DeclVendor.cpp
+++ b/source/Symbol/DeclVendor.cpp
@@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
#include "lldb/Symbol/DeclVendor.h"
-
-#include "lldb/Symbol/ClangASTContext.h"
+#include "lldb/Symbol/CompilerDecl.h"
+#include "lldb/Symbol/TypeSystem.h"
#include <vector>
@@ -20,10 +20,11 @@ std::vector<CompilerType> DeclVendor::FindTypes(ConstString name,
// FIXME: This depends on clang, but should be able to support any
// TypeSystem.
std::vector<CompilerType> ret;
- std::vector<clang::NamedDecl *> decls;
+ std::vector<CompilerDecl> decls;
if (FindDecls(name, /*append*/ true, max_matches, decls))
- for (auto *decl : decls)
- if (auto type = ClangASTContext::GetTypeForDecl(decl))
+ for (auto decl : decls)
+ if (auto type =
+ decl.GetTypeSystem()->GetTypeForDecl(decl.GetOpaqueDecl()))
ret.push_back(type);
return ret;
}