forked from OSchip/llvm-project
Updated LLVM/Clang to pull in an MCJIT fix that
allows us to set __attribute__ ((used)) on expressions that masquerade as methods. When we are stopped in classes in anonymous namespaces, this fix (and enabling __attribute__ ((used)) on the method) will allow expressions to run. llvm-svn: 143560
This commit is contained in:
parent
9cf803c4bf
commit
c832475cd2
|
@ -3016,7 +3016,7 @@ ClangExpressionDeclMap::AddOneType(NameSearchContext &context,
|
|||
const bool is_static = false;
|
||||
const bool is_inline = false;
|
||||
const bool is_explicit = false;
|
||||
const bool is_attr_used = false;
|
||||
const bool is_attr_used = true;
|
||||
const bool is_artificial = false;
|
||||
|
||||
ClangASTContext::AddMethodToCXXRecordType (parser_ast_context,
|
||||
|
|
|
@ -3059,6 +3059,7 @@ ClangASTContext::GetNumPointeeChildren (clang_type_t clang_type)
|
|||
case clang::BuiltinType::BoundMember:
|
||||
case clang::BuiltinType::Half:
|
||||
case clang::BuiltinType::ARCUnbridgedCast:
|
||||
case clang::BuiltinType::PseudoObject:
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
|
@ -4898,6 +4899,7 @@ ClangASTContext::IsPossibleDynamicType (clang::ASTContext *ast, clang_type_t cla
|
|||
case clang::BuiltinType::BoundMember:
|
||||
case clang::BuiltinType::Half:
|
||||
case clang::BuiltinType::ARCUnbridgedCast:
|
||||
case clang::BuiltinType::PseudoObject:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
@ -5033,6 +5035,7 @@ ClangASTContext::IsPossibleCPlusPlusDynamicType (clang::ASTContext *ast, clang_t
|
|||
case clang::BuiltinType::BoundMember:
|
||||
case clang::BuiltinType::Half:
|
||||
case clang::BuiltinType::ARCUnbridgedCast:
|
||||
case clang::BuiltinType::PseudoObject:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -572,6 +572,7 @@ ClangASTType::GetFormat (clang_type_t clang_type)
|
|||
case clang::BuiltinType::ObjCSel:
|
||||
case clang::BuiltinType::Half:
|
||||
case clang::BuiltinType::ARCUnbridgedCast:
|
||||
case clang::BuiltinType::PseudoObject:
|
||||
return lldb::eFormatHex;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue