8000 Adjust output in order to be comptatible with perf · randomstuff/unjit@0cc1a40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cc1a40

Browse files
author
Gabriel Corona
committed
Adjust output in order to be comptatible with perf
1 parent 3894823 commit 0cc1a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Disassembler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void Disassembler::disassemble(std::ostream& stream, uint8_t *code, size_t size,
7878
if (c == 0)
7979
return;
8080
stream << std::setfill('0') << std::setw(16) << std::hex << pc
81-
<< " " << temp << '\n';
81+
<< ":\t" << temp << '\n';
8282
size -= c;
8383
code += c;
8484
pc += c;
@@ -113,7 +113,7 @@ void Disassembler::disassemble(std::ostream& stream, Symbol const& symbol)
113113
return;
114114
}
115115

116-
stream << symbol.name << '\n';
116+
stream << std::hex << symbol.value << '<' << symbol.name << ">\n";
117117
this->disassemble(stream, buffer, symbol.size, symbol.value);
118118
stream << '\n';
119119
}

0 commit comments

Comments
 (0)
0