diff options
author | Rafael Auler <rafaelauler@fb.com> | 2023-09-28 09:48:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 09:48:36 -0700 |
commit | 3429aa3e60b982592e29c941b73827f3c794a401 (patch) | |
tree | 1a8248ee0090ae5d962a0427fde79980e0ec3789 /clang/lib/Lex/ModuleMap.cpp | |
parent | 0ecd8846aedac1039448a32f87d299ce244dda68 (diff) | |
download | llvm-3429aa3e60b982592e29c941b73827f3c794a401.zip llvm-3429aa3e60b982592e29c941b73827f3c794a401.tar.gz llvm-3429aa3e60b982592e29c941b73827f3c794a401.tar.bz2 |
[BOLT] Report JITLink errors appropriately (#67633)
Previously we would crash with an assertion failure (unreachable code)
whenever we had an error in JITLink. Change this to use JITLink API
correctly and let it print the error to output, so we can read and more
easily diagnose what's happening.
Before this patch:
unexpected abandoned allocation
UNREACHABLE executed at...
After this patch:
BOLT-ERROR: JITLink failed: In graph in-memory object file, section
.local.foo: relocation target .text + 0x1 at address 0xa7c00000 is out
of range of BranchPCRel32 fixup at 0x132d40f1 (bar, 0x132d40f0 + 0x1)
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions