aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-12-02 18:59:00 -0500
committerNico Weber <thakis@chromium.org>2020-12-03 08:35:12 -0500
commit3422f3cc6e5c8b4657297b5b7b898e5bfb60bbf5 (patch)
tree86b22368a545ad72970690fc56164fb7c4489153 /clang/lib/CodeGen/CodeGenModule.cpp
parentd3fef7a7c25eba804f5e75b0bb352ed0aaa7c057 (diff)
downloadllvm-3422f3cc6e5c8b4657297b5b7b898e5bfb60bbf5.zip
llvm-3422f3cc6e5c8b4657297b5b7b898e5bfb60bbf5.tar.gz
llvm-3422f3cc6e5c8b4657297b5b7b898e5bfb60bbf5.tar.bz2
Reland "[mac/lld] Implement -why_load".
The problem was that `sym` became replaced in the call to make<ObjFile> and referring to it afer that read memory that now stored a different kind of symbol (a Defined instead of a LazySymbol). Since this happens only once per archive, just copy the symbol to the stack before make<ObjFile> and read the copy instead. Originally reviewed at https://reviews.llvm.org/D92496
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions