aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2019-01-03 17:45:30 +0000
committerJordan Rupprecht <rupprecht@google.com>2019-01-03 17:45:30 +0000
commit1f82176f7da4008c632527d6674a7938fdf8f198 (patch)
treed0562e386a1a94b1ce151324801316271c1121f1 /clang/lib/Frontend/CompilerInvocation.cpp
parent57fc9582f97feb9e2a22bfa647b9f49d7bf2d1b3 (diff)
downloadllvm-1f82176f7da4008c632527d6674a7938fdf8f198.zip
llvm-1f82176f7da4008c632527d6674a7938fdf8f198.tar.gz
llvm-1f82176f7da4008c632527d6674a7938fdf8f198.tar.bz2
[llvm-objcopy][ELF] Implement a mutable section visitor that updates size-related fields (Size, EntrySize, Align) before layout.
Summary: Fix EntrySize, Size, and Align before doing layout calculation. As a side cleanup, this removes a dependence on sizeof(Elf_Sym) within BinaryReader, so we can untemplatize that. This unblocks a cleaner implementation of handling the -O<format> flag. See D53667 for a previous attempt. Actual implementation of the -O<format> flag will come in an upcoming commit, this is largely a NFC (although not _totally_ one, because alignment on binary input was actually wrong before). Reviewers: jakehehrlich, jhenderson, alexshap, espindola Reviewed By: jhenderson Subscribers: emaste, arichardson, llvm-commits Differential Revision: https://reviews.llvm.org/D56211 llvm-svn: 350336
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions