Skip to content

Commit

Permalink
Make exprloc_value public
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 authored Apr 25, 2019
1 parent 36773cf commit 953a8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/read/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ impl<R: Reader> Attribute<R> {
/// The standard doesn't mention `DW_FORM_block*` as a possible form, but
/// it is encountered in practice.
#[inline]
fn exprloc_value(&self) -> Option<Expression<R>> {
pub fn exprloc_value(&self) -> Option<Expression<R>> {
self.value.exprloc_value()
}

Expand Down Expand Up @@ -1759,7 +1759,7 @@ where
/// Expressions and locations may be `DW_FORM_block*` or `DW_FORM_exprloc`.
/// The standard doesn't mention `DW_FORM_block*` as a possible form, but
/// it is encountered in practice.
fn exprloc_value(&self) -> Option<Expression<R>> {
pub fn exprloc_value(&self) -> Option<Expression<R>> {
Some(match *self {
AttributeValue::Block(ref data) => Expression(data.clone()),
AttributeValue::Exprloc(ref data) => data.clone(),
Expand Down

0 comments on commit 953a8a9

Please sign in to comment.