summaryrefslogtreecommitdiffstats
path: root/llvm/tools/sancov/sancov.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/tools/sancov/sancov.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/tools/sancov/sancov.cpp')
-rw-r--r--llvm/tools/sancov/sancov.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/sancov/sancov.cpp b/llvm/tools/sancov/sancov.cpp
index 2b9c181246b..55231742878 100644
--- a/llvm/tools/sancov/sancov.cpp
+++ b/llvm/tools/sancov/sancov.cpp
@@ -758,7 +758,7 @@ static void getObjectCoveragePoints(const object::ObjectFile &O,
Index += Size) {
MCInst Inst;
if (!DisAsm->getInstruction(Inst, Size, Bytes.slice(Index),
- SectionAddr + Index, nulls(), nulls())) {
+ SectionAddr + Index, nulls())) {
if (Size == 0)
Size = 1;
continue;
OpenPOWER on IntegriCloud