summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-03-06 21:13:09 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-03-06 21:13:09 +0000
commit9e9f1db866eac0df049266a54ea937ffd40ad297 (patch)
treeebf76f98b3f7406cb7547218d5d83bf0913f6428
parent23c85ed52b4b910e4918f7aa82044d4886c37fe7 (diff)
downloadbcm5719-llvm-9e9f1db866eac0df049266a54ea937ffd40ad297.tar.gz
bcm5719-llvm-9e9f1db866eac0df049266a54ea937ffd40ad297.zip
Adding support for DW_OP_stack_value in DWARFExpression::Evaluate
llvm-svn: 176578
-rw-r--r--lldb/source/Expression/DWARFExpression.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Expression/DWARFExpression.cpp b/lldb/source/Expression/DWARFExpression.cpp
index 27671b20463..a6950d6a5dc 100644
--- a/lldb/source/Expression/DWARFExpression.cpp
+++ b/lldb/source/Expression/DWARFExpression.cpp
@@ -2612,6 +2612,18 @@ DWARFExpression::Evaluate
error_ptr->SetErrorString ("Unimplemented opcode DW_OP_call4.");
return false;
+ //----------------------------------------------------------------------
+ // OPCODE: DW_OP_stack_value
+ // OPERANDS: None
+ // DESCRIPTION: Specifies that the object does not exist in memory but
+ // rather is a constant value. The value from the top of the stack is
+ // the value to be used. This is the actual object value and not the
+ // location.
+ //----------------------------------------------------------------------
+ case DW_OP_stack_value:
+ stack.back().SetValueType(Value::eValueTypeScalar);
+ break;
+
#if 0
//----------------------------------------------------------------------
// OPCODE: DW_OP_call_ref
OpenPOWER on IntegriCloud