Add disassembler option to show byte offset
authorDavid Neto <dneto@google.com>
Mon, 18 Jan 2016 20:29:15 +0000 (15:29 -0500)
committerDavid Neto <dneto@google.com>
Wed, 20 Jan 2016 22:07:30 +0000 (17:07 -0500)
commitc62f41e28191d880b57ff6be2f7b90b73711be55
tree0e49c0235564dbed47ee6040000d99efdceeffa9
parent961f5dc54408b1516b9e4d85ee1fb4891b903f61
Add disassembler option to show byte offset

The option is disabled by default.

The offset is printed in hex, as a comment after each instruction.
include/libspirv/libspirv.h
source/disassemble.cpp
test/BinaryToText.cpp
tools/dis/dis.cpp