[llvm] [InstrProf][X86] Set code model for counters global variables (PR #77986)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 18:00:07 PST 2024
https://github.com/MaskRay approved this pull request.
IIUC when mixing -mcmodel=small and -mcmodel=large object files, the counter section will cause an lld warning if we take https://github.com/llvm/llvm-project/pull/72335 . This makes me nervous about the lld change.
However, setting the code model for counter variables is right.
https://github.com/llvm/llvm-project/pull/77986
More information about the llvm-commits
mailing list