From 6e5f26bba87be02ea4c1220898031c441c2562fc Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 20 Feb 2025 18:39:38 -0800 Subject: Revert "[HLSL] Implement default constant buffer `$Globals`" (#128112) Reverts llvm/llvm-project#125807 Reverting this change because of failing tests. --- clang/lib/CodeGen/CodeGenModule.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 1b7d0ac..7924c32 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5513,11 +5513,6 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D, if (getLangOpts().OpenCL && ASTTy->isSamplerT()) return; - // HLSL default buffer constants will be emitted during HLSLBufferDecl codegen - if (getLangOpts().HLSL && - D->getType().getAddressSpace() == LangAS::hlsl_constant) - return; - // If this is OpenMP device, check if it is legal to emit this global // normally. if (LangOpts.OpenMPIsTargetDevice && OpenMPRuntime && -- cgit v1.1