diff options
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/staptree.cxx b/staptree.cxx index cca79981..643f61b3 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -169,9 +169,10 @@ functiondecl::functiondecl (): } -literal_number::literal_number (int64_t v) +literal_number::literal_number (int64_t v, bool hex) { value = v; + print_hex = hex; type = pe_long; } @@ -255,7 +256,11 @@ void literal_string::print (ostream& o) const void literal_number::print (ostream& o) const { + if (print_hex) + o << hex << showbase; o << value; + if (print_hex) + o << dec << noshowbase; } |