Skip to content

Commit

Permalink
feat: disable aliases in instruction printing
Browse files Browse the repository at this point in the history
  • Loading branch information
unlsycn committed May 5, 2023
1 parent d45855a commit 9bf4ff8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/disasm.cc
Expand Up @@ -88,6 +88,8 @@ extern "C" void init_disasm(const char *triple) {
AsmInfo->getAssemblerDialect(), *AsmInfo, *gMII, *gMRI);
gIP->setPrintImmHex(true);
gIP->setPrintBranchImmAsAddress(true);
if (isa == "riscv32" || isa == "riscv64")
gIP->applyTargetSpecificCLOption("no-aliases");
}

extern "C" void disassemble(char *str, int size, uint64_t pc, uint8_t *code, int nbyte) {
Expand Down

0 comments on commit 9bf4ff8

Please sign in to comment.