summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-08-13 22:29:54 +0000
committerSean Callanan <scallanan@apple.com>2010-08-13 22:29:54 +0000
commit03e977145846097471b0b39fed0625d207fca756 (patch)
treec2410d6a07928bcc3269f88342c42cdad5092560 /lldb/source
parent15b3c3d0ac00a125d17e08d24c619e4500b0967b (diff)
downloadbcm5719-llvm-03e977145846097471b0b39fed0625d207fca756.tar.gz
bcm5719-llvm-03e977145846097471b0b39fed0625d207fca756.zip
Added documentation to ClangExpressionDeclMap.
Also cleaned up its API a tiny bit (but not the extensive amount that is actually needed. That's still coming.) llvm-svn: 111049
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp5
-rw-r--r--lldb/source/Expression/IRForTarget.cpp3
2 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index fb10605a36f..845d1c0d881 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -115,8 +115,7 @@ bool
ClangExpressionDeclMap::AddValueToStruct (llvm::Value *value,
const clang::NamedDecl *decl,
std::string &name,
- void *parser_type,
- clang::ASTContext *parser_ast_context,
+ TypeFromParser type,
size_t size,
off_t alignment)
{
@@ -137,7 +136,7 @@ ClangExpressionDeclMap::AddValueToStruct (llvm::Value *value,
member.m_value = value;
member.m_decl = decl;
member.m_name = name;
- member.m_parser_type = TypeFromParser(parser_type, parser_ast_context);
+ member.m_parser_type = type;
member.m_offset = 0;
member.m_size = size;
member.m_alignment = alignment;
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index ca1aeb4327c..57604aadacd 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -528,8 +528,7 @@ IRForTarget::MaybeHandleVariable(Module &M,
if (named_decl && !m_decl_map->AddValueToStruct(V,
named_decl,
name,
- qual_type,
- ast_context,
+ lldb_private::TypeFromParser(qual_type, ast_context),
value_size,
value_alignment))
return false;
OpenPOWER on IntegriCloud