Generate simulated DWARF for rest of the functions

This commit is contained in:
Yury Delendik
2019-07-16 16:13:10 -05:00
committed by Dan Gohman
parent 4937dd0632
commit b4a505d5d3
7 changed files with 702 additions and 171 deletions

View File

@@ -42,9 +42,13 @@ impl Clone for CompiledExpressionPart {
impl CompiledExpression {
pub fn vmctx() -> CompiledExpression {
CompiledExpression::from_label(get_vmctx_value_label())
}
pub fn from_label(label: ValueLabel) -> CompiledExpression {
CompiledExpression {
parts: vec![
CompiledExpressionPart::Local(get_vmctx_value_label()),
CompiledExpressionPart::Local(label),
CompiledExpressionPart::Code(vec![gimli::constants::DW_OP_stack_value.0 as u8]),
],
need_deref: false,