aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorjeremyd2019 <github@jdrake.com>2025-07-29 10:01:43 -0700
committerGitHub <noreply@github.com>2025-07-29 10:01:43 -0700
commita3228b6bf98c3efce3722700cf71f8b093e7870c (patch)
tree4dc19855b97a64fd73356ca405efaad5580b1865 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parent28b319005371afa1392fb405c53139c4ae2b3066 (diff)
downloadllvm-a3228b6bf98c3efce3722700cf71f8b093e7870c.zip
llvm-a3228b6bf98c3efce3722700cf71f8b093e7870c.tar.gz
llvm-a3228b6bf98c3efce3722700cf71f8b093e7870c.tar.bz2
[Clang][Cygwin] Enable few conditions that are shared with MinGW (#149637)
The Cygwin target is generally very similar to the MinGW target. The default auto-import behavior, the default calling convention, the `.dll.a` import library extension, the `__GXX_TYPEINFO_EQUALITY_INLINE` pre-define by `g++`, and the long double configuration. Co-authored-by: Mateusz MikuĊ‚a <oss@mateuszmikula.dev>
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
index 4ec25e3..750fe97 100644
--- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -1593,10 +1593,10 @@ static bool shouldAssumeDSOLocal(const CIRGenModule &cgm,
const llvm::Triple &tt = cgm.getTriple();
const CodeGenOptions &cgOpts = cgm.getCodeGenOpts();
- if (tt.isWindowsGNUEnvironment()) {
- // In MinGW, variables without DLLImport can still be automatically
- // imported from a DLL by the linker; don't mark variables that
- // potentially could come from another DLL as DSO local.
+ if (tt.isOSCygMing()) {
+ // In MinGW and Cygwin, variables without DLLImport can still be
+ // automatically imported from a DLL by the linker; don't mark variables
+ // that potentially could come from another DLL as DSO local.
// With EmulatedTLS, TLS variables can be autoimported from other DLLs
// (and this actually happens in the public interface of libstdc++), so