compiler-explorer / asm-parser

BSD 2-Clause "Simplified" License
27 stars 7 forks source link

Interesting edge-case on not fully used labels #4

Closed partouf closed 3 years ago

partouf commented 3 years ago

image

So _ZN5boost9unit_testL16INV_TEST_UNIT_IDE is the only label that's used through a call opcode, and so the original parser decides to hide the other labels, but somehow keep showing the internal data.

I think the showing of the data while not "belonging" to the first label is probably wrong. So the original asm-parser has a bug here, I think.

(I reintroduced fake usage through the .type line in the c++ parser to show the rest of the labels - to try and get some kind of compatibility going, but it's not easy to be compatible while trying to stay correct)

partouf commented 3 years ago

I think this is the only correct way of doing it image

So I'm going to ignore the original here and accept it's just different.