diff options
author | Sean Callanan <scallanan@apple.com> | 2011-10-25 18:36:40 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-10-25 18:36:40 +0000 |
commit | c70ed46dda73cd80b30e832103c14f8c68e85e0b (patch) | |
tree | 37c04b6cb39b3547d08263a35f231611e25f7803 /lldb/source/Expression/ClangExpressionDeclMap.cpp | |
parent | afa155fb8879f77c40a73360b1215b65d7501aa9 (diff) | |
download | bcm5719-llvm-c70ed46dda73cd80b30e832103c14f8c68e85e0b.tar.gz bcm5719-llvm-c70ed46dda73cd80b30e832103c14f8c68e85e0b.zip |
Improved handling of static data in the expression
parser. Now expression like the following work as
expected:
-
(lldb) expr struct { int a; int b; } $blah = { 10, 20 }
<no result>
(lldb) expr $blah
(<anonymous struct at Parse:6:5>) $blah = {
(int) a = 10
(int) b = 20
}
-
Now the IRForTarget subsystem knows how to handle
static initializers of various composite types.
Also removed an unnecessary parameter from
ClangExpressionDeclMap::GetFunctionInfo.
llvm-svn: 142936
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionDeclMap.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index fb8cc591297..5566091206f 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -612,7 +612,6 @@ bool ClangExpressionDeclMap::GetFunctionInfo ( const NamedDecl *decl, - llvm::Value**& value, uint64_t &ptr ) { @@ -624,7 +623,6 @@ ClangExpressionDeclMap::GetFunctionInfo // We know m_parser_vars is valid since we searched for the variable by // its NamedDecl - value = &entity_sp->m_parser_vars->m_llvm_value; ptr = entity_sp->m_parser_vars->m_lldb_value->GetScalar().ULongLong(); return true; |