mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-18 08:00:02 +00:00
[libFuzzer] Properly check if we can use dumpbin.
The flag "/sumary" is necessary, otherwise it returns a non-zero value. Differential Revision: https://reviews.llvm.org/D29371 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8ca514878
commit
90e4124e52
@ -179,7 +179,7 @@ const void *SearchMemory(const void *Data, size_t DataLen, const void *Patt,
|
||||
}
|
||||
|
||||
std::string DisassembleCmd(const std::string &FileName) {
|
||||
if (ExecuteCommand("dumpbin > nul") == 0)
|
||||
if (ExecuteCommand("dumpbin /summary > nul") == 0)
|
||||
return "dumpbin /disasm " + FileName;
|
||||
if (ExecuteCommand("llvm-objdump > nul") == 0)
|
||||
return "llvm-objdump -d " + FileName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user