aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2024-01-17 17:44:39 +0100
committerGitHub <noreply@github.com>2024-01-17 17:44:39 +0100
commita96b4671b97b167230986bd2811676064c608596 (patch)
tree0b69d7fabc4d7d4bd3862903adb7bcbf98fe1993 /llvm/lib/Object/WasmObjectFile.cpp
parent90bdf76fdbe5f4c38a14494a2e8d254ed70c166a (diff)
downloadllvm-a96b4671b97b167230986bd2811676064c608596.zip
llvm-a96b4671b97b167230986bd2811676064c608596.tar.gz
llvm-a96b4671b97b167230986bd2811676064c608596.tar.bz2
[flang] Lower BIND(C) module variables (#78279)
Lower initialized BIND(C) module variable as regular module variable, except that the fir.global symbol name is the binding label. For uninitialized variables, add the common linkage so that C code may define the variables. The standard does not provide a way to indicate that a variable is defined in C, but there are use cases. Beware that if the module file compiled object is added to a shared library, the variable will become a regular global definition and may override the C variable depending on the linking order.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions