Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Jan 22, 2020

Just some trivial fixes:

  • Properly reset prologue after each line (unlike others, this
    flag should be reset immediately).
  • Test for a function's end address first, as LLVM output appears to
    use 1-past-the-end-of-the-function as a location in that function,
    and not the next (note the first byte of the next function, which is
    ambiguously identical to that value, is used at least in low_pc;
    I'm not sure if it's used in debug lines too).
  • Ignore the same address if LLVM emitted it more than once, which
    it does sometimes.

@kripken kripken requested a review from dschuff January 22, 2020 19:26
@kripken kripken merged commit 70a6817 into master Jan 22, 2020
@kripken kripken deleted the end2 branch January 22, 2020 20:53
awtcode pushed a commit to awtcode/binaryen that referenced this pull request Jan 23, 2020
Just some trivial fixes:

* Properly reset prologue after each line (unlike others, this
flag should be reset immediately).

* Test for a function's end address first, as LLVM output appears to
use 1-past-the-end-of-the-function as a location in that function,
and not the next (note the first byte of the next function, which is
ambiguously identical to that value, is used at least in low_pc;
I'm not sure if it's used in debug lines too).

* Ignore the same address if LLVM emitted it more than once, which
it does sometimes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants