[llvm] d0269dd - [AArch64][BuildErrorFix] Add compatible classifyGlobalFunctionReference

Xiang1 Zhang via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 21:09:14 PDT 2022


Author: Xiang1 Zhang
Date: 2022-10-14T12:03:50+08:00
New Revision: d0269dd059b7a9f080f76e1c54285fe58c8c938e

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

LOG: [AArch64][BuildErrorFix] Add compatible classifyGlobalFunctionReference

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64Subtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index 96ef9357a121e..904f0b9f50544 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -300,6 +300,13 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
   unsigned classifyGlobalFunctionReference(const GlobalValue *GV,
                                            const TargetMachine &TM) const;
 
+  /// 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 {
+    return 0;
+  }
+
   void overrideSchedPolicy(MachineSchedPolicy &Policy,
                            unsigned NumRegionInstrs) const override;
 


        


More information about the llvm-commits mailing list