[llvm] 08dc847 - Add missing `override`s after aad013de41c0

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 01:38:58 PDT 2022


Author: Benjamin Kramer
Date: 2022-10-14T10:38:32+02:00
New Revision: 08dc847f3339bf11bd4665b481ec9a4398218326

URL: https://github.com/llvm/llvm-project/commit/08dc847f3339bf11bd4665b481ec9a4398218326
DIFF: https://github.com/llvm/llvm-project/commit/08dc847f3339bf11bd4665b481ec9a4398218326.diff

LOG: Add missing `override`s after aad013de41c0

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64Subtarget.h
    llvm/lib/Target/M68k/M68kSubtarget.h
    llvm/lib/Target/X86/X86Subtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index 904f0b9f50544..326e5120d4ba9 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -303,7 +303,8 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
   /// This function is design to compatible with the function def in other
   /// targets and escape build error about the virtual function def in base
   /// class TargetSubtargetInfo. Updeate me if AArch64 target need to use it.
-  unsigned char classifyGlobalFunctionReference(const GlobalValue *GV) const {
+  unsigned char
+  classifyGlobalFunctionReference(const GlobalValue *GV) const override {
     return 0;
   }
 

diff  --git a/llvm/lib/Target/M68k/M68kSubtarget.h b/llvm/lib/Target/M68k/M68kSubtarget.h
index 51e50edcae37d..c8331d3f091e3 100644
--- a/llvm/lib/Target/M68k/M68kSubtarget.h
+++ b/llvm/lib/Target/M68k/M68kSubtarget.h
@@ -123,7 +123,8 @@ class M68kSubtarget : public M68kGenSubtargetInfo {
   /// Classify a global function reference for the current subtarget.
   unsigned char classifyGlobalFunctionReference(const GlobalValue *GV,
                                                 const Module &M) const;
-  unsigned char classifyGlobalFunctionReference(const GlobalValue *GV) const;
+  unsigned char
+  classifyGlobalFunctionReference(const GlobalValue *GV) const override;
 
   /// Classify a blockaddress reference for the current subtarget according to
   /// how we should reference it in a non-pcrel context.

diff  --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 09a8b1f1aafb8..cfbf5b911f842 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -361,7 +361,8 @@ class X86Subtarget final : public X86GenSubtargetInfo {
   /// Classify a global function reference for the current subtarget.
   unsigned char classifyGlobalFunctionReference(const GlobalValue *GV,
                                                 const Module &M) const;
-  unsigned char classifyGlobalFunctionReference(const GlobalValue *GV) const;
+  unsigned char
+  classifyGlobalFunctionReference(const GlobalValue *GV) const override;
 
   /// Classify a blockaddress reference for the current subtarget according to
   /// how we should reference it in a non-pcrel context.


        


More information about the llvm-commits mailing list