================ @@ -159,11 +159,16 @@ class SemaHLSL : public SemaBase { // List of all resource bindings ResourceBindings Bindings; + // default constant buffer $Globals + HLSLBufferDecl *DefaultCBuffer; + private: void collectResourcesOnVarDecl(VarDecl *D); void collectResourcesOnUserRecordDecl(const VarDecl *VD, const RecordType *RT); void processExplicitBindingsOnDecl(VarDecl *D); + + void diagnoseAvailabilityViolations(TranslationUnitDecl *TU); ---------------- hekota wrote:
It used to be called directly from clang Sema. Now clang Sema calls HLSL Sema's `ActOnEndOfTranslationUnit` because we need to do more work at the end of translation unit. The `diagnoseAvailabilityViolations` is called from `SemaHLSL::ActOnEndOfTranslationUnit` so it can be private now. https://github.com/llvm/llvm-project/pull/125807 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits