diff options
author | Nawal Copty <nawal.copty@intel.com> | 2023-04-25 12:45:33 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-04-25 13:07:01 -0700 |
commit | 6e54a57c61af6a959210f3628df9e21e3d7033f5 (patch) | |
tree | d7c2cff3562765dfb58424fb9d402de333b8e7da /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | bab6cfede92830bb38d08282c62144df79b13600 (diff) | |
download | llvm-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