summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ClangASTContext.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2017-11-07 10:39:22 +0000
committerTamas Berghammer <tberghammer@google.com>2017-11-07 10:39:22 +0000
commit5976583a30cb39ccbad277cea1485c0a8c8e417c (patch)
treedd071d363ccff0e4056956e7f81e5c02dcebc5d1 /lldb/source/Symbol/ClangASTContext.cpp
parent888cc5d50bec5514996dc86d589d2a17b90ab9ca (diff)
downloadbcm5719-llvm-5976583a30cb39ccbad277cea1485c0a8c8e417c.tar.gz
bcm5719-llvm-5976583a30cb39ccbad277cea1485c0a8c8e417c.zip
Support scoped enums in the DWARF AST parser
Subscribers: JDevlieghere Differential Revision: https://reviews.llvm.org/D39545 llvm-svn: 317563
Diffstat (limited to 'lldb/source/Symbol/ClangASTContext.cpp')
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 86f1055f93b..0f5e6f25df7 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -2169,20 +2169,20 @@ CompilerType ClangASTContext::GetOrCreateStructForIdentifier(
CompilerType
ClangASTContext::CreateEnumerationType(const char *name, DeclContext *decl_ctx,
const Declaration &decl,
- const CompilerType &integer_clang_type) {
+ const CompilerType &integer_clang_type,
+ bool is_scoped) {
// TODO: Do something intelligent with the Declaration object passed in
// like maybe filling in the SourceLocation with it...
ASTContext *ast = getASTContext();
// TODO: ask about these...
- // const bool IsScoped = false;
// const bool IsFixed = false;
EnumDecl *enum_decl = EnumDecl::Create(
*ast, decl_ctx, SourceLocation(), SourceLocation(),
name && name[0] ? &ast->Idents.get(name) : nullptr, nullptr,
- false, // IsScoped
- false, // IsScopedUsingClassTag
+ is_scoped,
+ true, // IsScopedUsingClassTag
false); // IsFixed
if (enum_decl) {
OpenPOWER on IntegriCloud