aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineLoopUtils.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-11-25 15:26:13 +0200
committerMartin Storsjö <martin@martin.st>2019-12-11 10:20:34 +0200
commitaf39708c2d48beedc6721fe25676789cc6719f7b (patch)
tree74a56c0042818cb0fef4e71fd2077978ae235c1c /llvm/lib/CodeGen/MachineLoopUtils.cpp
parentf99297176cd9507393b69029406080de01ae41c7 (diff)
downloadllvm-af39708c2d48beedc6721fe25676789cc6719f7b.zip
llvm-af39708c2d48beedc6721fe25676789cc6719f7b.tar.gz
llvm-af39708c2d48beedc6721fe25676789cc6719f7b.tar.bz2
[llvm-readobj] Fix/improve printing WinEH unwind info for linked PE images
ARMWinEHPrinter was already designed to handle linked PE images (since d2941b43f40d), but resolving symbols didn't consistently take the image base into account (as linked images seldom have a symbol table, except for in MinGW setups). Win64EHDumper wasn't really designed to handle linked images (it would crash if executed on such a file), but a few concepts (getSymbol, taking a virtual address instead of a relocation, and getSectionContaining for finding the section containing a certain virtual address) can be borrowed from ARMWinEHPrinter. Adjust ARMWinEHPrinter to print the address of the exception handler routine as a VA instead of an RVA, consistently with other addresses in the same printout, and make Win64EHDumper print addresses similarly for image cases. Differential Revision: https://reviews.llvm.org/D71303
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions