Skip to content

Commit

Permalink
Merge pull request gimli-rs#422 from bjorn3/patch-1
Browse files Browse the repository at this point in the history
Make exprloc_value public
  • Loading branch information
philipc authored Apr 26, 2019
2 parents 36773cf + 953a8a9 commit d0c6edd
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 d0c6edd

Please sign in to comment.