aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorNawal Copty <nawal.copty@intel.com>2023-04-25 12:45:33 -0700
committerArthur Eubanks <aeubanks@google.com>2023-04-25 13:07:01 -0700
commit6e54a57c61af6a959210f3628df9e21e3d7033f5 (patch)
treed7c2cff3562765dfb58424fb9d402de333b8e7da /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parentbab6cfede92830bb38d08282c62144df79b13600 (diff)
downloadllvm-6e54a57c61af6a959210f3628df9e21e3d7033f5.zip
llvm-6e54a57c61af6a959210f3628df9e21e3d7033f5.tar.gz
llvm-6e54a57c61af6a959210f3628df9e21e3d7033f5.tar.bz2
Preserve the address space for llvm.used and llvm.compiler.used global variables in GlobalOpt pass.
The llvm.used (or llvm.compiler.used) global variable is an array that contains a list of pointers to global variables and functions. The GlobalOpt (Global Variable Optimizer) pass is not preserving the address space for llvm.used and llvm.compiler.used global variables.This patch updates the setUsedInitializer() function in GlobalOpt.cpp, so the address space is preserved. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D144518
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions