aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-12-04 23:38:46 +0200
committerGitHub <noreply@github.com>2023-12-04 23:38:46 +0200
commit143133fe685bd0b8819a96bdc1af6a4ff2877b13 (patch)
treeccc8daa798956d4ad1b7de3aa5efe48be620d9bc /clang/lib/Frontend/CompilerInvocation.cpp
parent8dc474c6b7d5fc4e0e7f18aac7750eb8c6bb6b26 (diff)
downloadllvm-143133fe685bd0b8819a96bdc1af6a4ff2877b13.zip
llvm-143133fe685bd0b8819a96bdc1af6a4ff2877b13.tar.gz
llvm-143133fe685bd0b8819a96bdc1af6a4ff2877b13.tar.bz2
[LLD] [COFF] Don't preserve unnecessary __imp_ prefixed symbols (#72989)
This redoes the fix from 3ab6209a3f93bdbeec8e9b9fcc00a9a4980915ff differently, without the unwanted effect of preserving unnecessary `__imp_` prefixed symbols. If the referencing object is a regular object, the `__imp_` symbol will have `isUsedInRegularObj` set on it from that already. If the referencing object is an LTO object, we set `isUsedInRegularObj` for any symbol starting with `__imp_`. If the object file defining the `__imp_` symbol is a regular object, the `isUsedInRegularObj` flag has no effect. If it is an LTO object, it causes the symbol to be preserved.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions