summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp
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/ARC/Disassembler/ARCDisassembler.cpp
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/ARC/Disassembler/ARCDisassembler.cpp')
-rw-r--r--llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp b/llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp
index 82da18617b9..5fae456c569 100644
--- a/llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp
+++ b/llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp
@@ -42,7 +42,6 @@ public:
DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
ArrayRef<uint8_t> Bytes, uint64_t Address,
- raw_ostream &VStream,
raw_ostream &CStream) const override;
};
@@ -297,7 +296,6 @@ static DecodeStatus DecodeMoveHRegInstruction(MCInst &Inst, uint64_t Insn,
DecodeStatus ARCDisassembler::getInstruction(MCInst &Instr, uint64_t &Size,
ArrayRef<uint8_t> Bytes,
uint64_t Address,
- raw_ostream &vStream,
raw_ostream &cStream) const {
MCDisassembler::DecodeStatus Result;
if (Bytes.size() < 2) {
OpenPOWER on IntegriCloud