aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-09-09 16:45:17 +0000
committerFangrui Song <maskray@google.com>2019-09-09 16:45:17 +0000
commitc28f3e6e2c3ef1323ed18d4c485681bb4ff72ced (patch)
tree61ae67185fae95bd78b5bcfc29f558f0a0587c31 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent2b7089949eda508203eb23c835d6a295eb00b46b (diff)
downloadllvm-c28f3e6e2c3ef1323ed18d4c485681bb4ff72ced.zip
llvm-c28f3e6e2c3ef1323ed18d4c485681bb4ff72ced.tar.gz
llvm-c28f3e6e2c3ef1323ed18d4c485681bb4ff72ced.tar.bz2
[yaml2obj] Simplify p_filesz/p_memsz computing
This fixes a bug as well. When "FileSize:" (p_filesz) is specified and different from the actual value, the following code probably should not use PHeader.p_filesz: if (SHeader->sh_offset == PHeader.p_offset + PHeader.p_filesz) PHeader.p_memsz += SHeader->sh_size; Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D67256 llvm-svn: 371420
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions