summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ASTResultSynthesizer.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-11-19 02:52:21 +0000
committerSean Callanan <scallanan@apple.com>2010-11-19 02:52:21 +0000
commitf7c3e27f62afe806af2f11f03531133e80abaee2 (patch)
tree08b794e817ad31ca7fe0fa5f9e3f3ce4354799db /lldb/source/Expression/ASTResultSynthesizer.cpp
parentb58867ccbad5c80afa4a2b23cbb39602063a6850 (diff)
downloadbcm5719-llvm-f7c3e27f62afe806af2f11f03531133e80abaee2.tar.gz
bcm5719-llvm-f7c3e27f62afe806af2f11f03531133e80abaee2.zip
Added support for indicating to the expression parser
that the result of an expression should be coerced to a specific type. Also made breakpoint conditions pass in the bool type for this type. The expression parser ignores this indication for now. llvm-svn: 119779
Diffstat (limited to 'lldb/source/Expression/ASTResultSynthesizer.cpp')
-rw-r--r--lldb/source/Expression/ASTResultSynthesizer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp
index 707875631bb..bcabfe3badc 100644
--- a/lldb/source/Expression/ASTResultSynthesizer.cpp
+++ b/lldb/source/Expression/ASTResultSynthesizer.cpp
@@ -24,11 +24,13 @@ using namespace llvm;
using namespace clang;
using namespace lldb_private;
-ASTResultSynthesizer::ASTResultSynthesizer(ASTConsumer *passthrough) :
+ASTResultSynthesizer::ASTResultSynthesizer(ASTConsumer *passthrough,
+ TypeFromUser desired_type) :
m_ast_context (NULL),
m_passthrough (passthrough),
m_passthrough_sema (NULL),
- m_sema (NULL)
+ m_sema (NULL),
+ m_desired_type (desired_type)
{
if (!m_passthrough)
return;
OpenPOWER on IntegriCloud