summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-11 12:36:13 -0800
committerFangrui Song <maskray@google.com>2020-01-11 13:34:52 -0800
commit6fdd6a7b3f696972edc244488f59532d05136a27 (patch)
treedc7e353f873ffc0db7bae27ad8631a93ba9ac321 /llvm/lib/Target/AArch64
parent2cdb18afda841392002feafda21af31854c195b3 (diff)
downloadbcm5719-llvm-6fdd6a7b3f696972edc244488f59532d05136a27.tar.gz
bcm5719-llvm-6fdd6a7b3f696972edc244488f59532d05136a27.zip
[Disassembler] Delete the VStream parameter of MCDisassembler::getInstruction()
The argument is llvm::null() everywhere except llvm::errs() in llvm-objdump in -DLLVM_ENABLE_ASSERTIONS=On builds. It is used by no target but X86 in -DLLVM_ENABLE_ASSERTIONS=On builds. If we ever have the needs to add verbose log to disassemblers, we can record log with a member function, instead of passing it around as an argument.
Diffstat (limited to 'llvm/lib/Target/AArch64')
-rw-r--r--llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp1
-rw-r--r--llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
index 145ffef6f6f..3375e7c895f 100644
--- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
@@ -251,7 +251,6 @@ static MCDisassembler *createAArch64Disassembler(const Target &T,
DecodeStatus AArch64Disassembler::getInstruction(MCInst &MI, uint64_t &Size,
ArrayRef<uint8_t> Bytes,
uint64_t Address,
- raw_ostream &OS,
raw_ostream &CS) const {
CommentStream = &CS;
diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h
index 2ba5a695701..374a89edcb7 100644
--- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h
+++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.h
@@ -25,8 +25,7 @@ public:
MCDisassembler::DecodeStatus
getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
- uint64_t Address, raw_ostream &VStream,
- raw_ostream &CStream) const override;
+ uint64_t Address, raw_ostream &CStream) const override;
};
} // end namespace llvm
OpenPOWER on IntegriCloud