diff options
| author | Steven Perron <stevenperron@google.com> | 2025-06-16 16:44:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-16 16:44:55 -0400 |
| commit | a027eb4472ee8fa504c98bef655cac8c8bfe333a (patch) | |
| tree | 834a81f56e819d9462e13e5b38db3e547c92da1b /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 34be09ad731d631d7b950a334cfe25673ebe5519 (diff) | |
[HLSL] Use hidden visibility for external linkage. (#140292)
Implements
https://github.com/llvm/wg-hlsl/blob/main/proposals/0026-symbol-visibility.md.
The change is to stop using the `hlsl.export` attribute. Instead,
symbols with "program linkage" in HLSL will have export linkage with
default visibility, and symbols with "external linkage" in HLSL will
have export linkage with hidden visibility.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 13d0633e9b1c..70a09795d02f 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -1267,7 +1267,6 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (FD->hasAttr<HLSLShaderAttr>()) { CGM.getHLSLRuntime().emitEntryFunction(FD, Fn); } - CGM.getHLSLRuntime().setHLSLFunctionAttributes(FD, Fn); } EmitFunctionProlog(*CurFnInfo, CurFn, Args); |
