[llvm] 39617aa - NFC. Constify MachineVerifier::verify parameter

Yuanfang Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 11:59:58 PDT 2020


Author: Yuanfang Chen
Date: 2020-08-11T11:59:45-07:00
New Revision: 39617aaed95ac00957979bc1525598c1be80e85e

URL: https://github.com/llvm/llvm-project/commit/39617aaed95ac00957979bc1525598c1be80e85e
DIFF: https://github.com/llvm/llvm-project/commit/39617aaed95ac00957979bc1525598c1be80e85e.diff

LOG: NFC. Constify MachineVerifier::verify parameter

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineVerifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 238df43da9f5..6fbf37e5d766 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -86,7 +86,7 @@ namespace {
   struct MachineVerifier {
     MachineVerifier(Pass *pass, const char *b) : PASS(pass), Banner(b) {}
 
-    unsigned verify(MachineFunction &MF);
+    unsigned verify(const MachineFunction &MF);
 
     Pass *const PASS;
     const char *Banner;
@@ -336,7 +336,7 @@ void MachineVerifier::verifyProperties(const MachineFunction &MF) {
     report("Function has NoVRegs property but there are VReg operands", &MF);
 }
 
-unsigned MachineVerifier::verify(MachineFunction &MF) {
+unsigned MachineVerifier::verify(const MachineFunction &MF) {
   foundErrors = 0;
 
   this->MF = &MF;


        


More information about the llvm-commits mailing list