[AArch64][BuildErrorFix] Add compatible classifyGlobalFunctionReference
authorXiang1 Zhang <xiang1.zhang@intel.com>
Fri, 14 Oct 2022 03:23:20 +0000 (11:23 +0800)
committerXiang1 Zhang <xiang1.zhang@intel.com>
Fri, 14 Oct 2022 04:03:50 +0000 (12:03 +0800)
llvm/lib/Target/AArch64/AArch64Subtarget.h

index 96ef935..904f0b9 100644 (file)
@@ -300,6 +300,13 @@ public:
   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;