diff options
author | Fangrui Song <i@maskray.me> | 2020-01-26 15:47:32 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-01-27 00:31:23 -0800 |
commit | 941f20c3bd22f2b55815c6d5aa7914d9385fb3b3 (patch) | |
tree | 1ff464258545958b14852768031dcce8c985c9ef /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | b780df052dd2b246a760d00e00f7de9ebdab9d09 (diff) | |
download | llvm-941f20c3bd22f2b55815c6d5aa7914d9385fb3b3.zip llvm-941f20c3bd22f2b55815c6d5aa7914d9385fb3b3.tar.gz llvm-941f20c3bd22f2b55815c6d5aa7914d9385fb3b3.tar.bz2 |
[MachineVerifier] Simplify and delete LLVM_VERIFY_MACHINEINSTRS from a comment. NFC
The environment variable has been unused since r228079.
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 5513228..bf589a7 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -16,10 +16,8 @@ // Register live intervals: Registers must be defined only once, and must be // defined before use. // -// The machine code verifier is enabled from LLVMTargetMachine.cpp with the -// command-line option -verify-machineinstrs, or by defining the environment -// variable LLVM_VERIFY_MACHINEINSTRS to the name of a file that will receive -// the verifier errors. +// The machine code verifier is enabled with the command-line option +// -verify-machineinstrs. //===----------------------------------------------------------------------===// #include "llvm/ADT/BitVector.h" @@ -376,13 +374,11 @@ unsigned MachineVerifier::verify(MachineFunction &MF) { if (isFunctionFailedISel) return foundErrors; - isFunctionRegBankSelected = - !isFunctionFailedISel && - MF.getProperties().hasProperty( - MachineFunctionProperties::Property::RegBankSelected); - isFunctionSelected = !isFunctionFailedISel && - MF.getProperties().hasProperty( - MachineFunctionProperties::Property::Selected); + isFunctionRegBankSelected = MF.getProperties().hasProperty( + MachineFunctionProperties::Property::RegBankSelected); + isFunctionSelected = MF.getProperties().hasProperty( + MachineFunctionProperties::Property::Selected); + LiveVars = nullptr; LiveInts = nullptr; LiveStks = nullptr; |