aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <quentin.colombet@gmail.com>2023-08-09 14:34:32 +0200
committerQuentin Colombet <quentin.colombet@gmail.com>2023-08-09 14:41:01 +0200
commitbb206cb131226c375d0e09251e35a3d75dd3f06f (patch)
treef0f279d40729f3e18cba7a5dbf71154a182337b3 /clang/lib/Frontend/CompilerInvocation.cpp
parentb27e08892f780105d1522dae025e13c418c8b3ab (diff)
downloadllvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.zip
llvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.tar.gz
llvm-bb206cb131226c375d0e09251e35a3d75dd3f06f.tar.bz2
[NVPTX] Apply global var demotion to private symbols
When emitting the assembly we perform some late global variables demotion. Prior to this patch, this optimization was only performed on variables with the internal linkage whereas any local global variable can be demoted. Fix that by using `hasLocalLinkage` instead of `hasInternalLinkage`. Without this change, global variables with the `private` linkage wouldn't be demoted. Differential Revision: https://reviews.llvm.org/D154507
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions