[llvm] 1dc8038 - [AVR] Remove redundant void (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 17 18:09:07 PDT 2022


Author: Kazu Hirata
Date: 2022-07-17T18:08:50-07:00
New Revision: 1dc8038dad585dd1b59c18f158441a6066e17375

URL: https://github.com/llvm/llvm-project/commit/1dc8038dad585dd1b59c18f158441a6066e17375
DIFF: https://github.com/llvm/llvm-project/commit/1dc8038dad585dd1b59c18f158441a6066e17375.diff

LOG: [AVR] Remove redundant void (NFC)

Identified with modernize-redundant-void-arg.

Added: 
    

Modified: 
    llvm/lib/Target/AVR/AVRSubtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AVR/AVRSubtarget.h b/llvm/lib/Target/AVR/AVRSubtarget.h
index 2325193bac0a..3dd71243387b 100644
--- a/llvm/lib/Target/AVR/AVRSubtarget.h
+++ b/llvm/lib/Target/AVR/AVRSubtarget.h
@@ -92,15 +92,15 @@ class AVRSubtarget : public AVRGenSubtargetInfo {
   }
 
   /// Get I/O register addresses.
-  int getIORegRAMPZ(void) const { return hasELPM() ? 0x3b : -1; }
-  int getIORegEIND(void) const { return hasEIJMPCALL() ? 0x3c : -1; }
-  int getIORegSPL(void) const { return 0x3d; }
-  int getIORegSPH(void) const { return hasSmallStack() ? -1 : 0x3e; }
-  int getIORegSREG(void) const { return 0x3f; }
+  int getIORegRAMPZ() const { return hasELPM() ? 0x3b : -1; }
+  int getIORegEIND() const { return hasEIJMPCALL() ? 0x3c : -1; }
+  int getIORegSPL() const { return 0x3d; }
+  int getIORegSPH() const { return hasSmallStack() ? -1 : 0x3e; }
+  int getIORegSREG() const { return 0x3f; }
 
   /// Get GPR aliases.
-  int getRegTmpIndex(void) const { return hasTinyEncoding() ? 16 : 0; }
-  int getRegZeroIndex(void) const { return hasTinyEncoding() ? 17 : 1; }
+  int getRegTmpIndex() const { return hasTinyEncoding() ? 16 : 0; }
+  int getRegZeroIndex() const { return hasTinyEncoding() ? 17 : 1; }
 
 private:
   /// The ELF e_flags architecture.


        


More information about the llvm-commits mailing list