================ @@ -245,6 +245,30 @@ class PPCSubtarget : public PPCGenSubtargetInfo { /// True if the GV will be accessed via an indirect symbol. bool isGVIndirectSymbol(const GlobalValue *GV) const; + bool tocDataChecks(unsigned PointerSize, const GlobalVariable *GV) const { ---------------- diggerlin wrote:
the function always return true. suggestion change `bool tocDataChecks(unsigned PointerSize, const GlobalVariable *GV) const` ---> `void tocDataChecks(unsigned PointerSize, const GlobalVariable *GV) const` https://github.com/llvm/llvm-project/pull/67999 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits