aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2022-04-08 22:33:00 -0400
committerJez Ng <jezng@fb.com>2022-04-08 23:49:07 -0400
commit82dcf3063697eba96b825e91f11a8e74c4c95cb1 (patch)
treecec7852df0539846e0f9932dafbc5d1bbe43df3a /clang/lib/Frontend/CompilerInvocation.cpp
parenta58d0af058038595c93de961b725f86997cf8d4a (diff)
downloadllvm-82dcf3063697eba96b825e91f11a8e74c4c95cb1.zip
llvm-82dcf3063697eba96b825e91f11a8e74c4c95cb1.tar.gz
llvm-82dcf3063697eba96b825e91f11a8e74c4c95cb1.tar.bz2
[lld-macho] Use fewer indirections in UnwindInfo implementation
The previous implementation of UnwindInfoSection materialized all the compact unwind entries & applied their relocations, then parsed the resulting data to generate the final unwind info. This design had some unfortunate conseqeuences: since relocations can only be applied after their referents have had addresses assigned, operations that need to happen before address assignment must contort themselves. (See {D113582} and observe how this diff greatly simplifies it.) Moreover, it made synthesizing new compact unwind entries awkward. Handling PR50956 will require us to do this synthesis, and is the main motivation behind this diff. Previously, instead of generating a new CompactUnwindEntry directly, we would have had to generate a ConcatInputSection with a number of `Reloc`s that would then get "flattened" into a CompactUnwindEntry. This diff introduces an internal representation of `CompactUnwindEntry` (the former `CompactUnwindEntry` has been renamed to `CompactUnwindLayout`). The new CompactUnwindEntry stores references to its personality symbol and LSDA section directly, without the use of `Reloc` structs. In addition to being easier to work with, this diff also allows us to handle unwind info whose personality symbols are located in sections placed after the `__unwind_info`. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D123276
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions