mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
[MCJIT] Don't crash in debugging output for sections that aren't emitted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
300743f74a
commit
959030a38c
@ -45,6 +45,11 @@ void RuntimeDyldImpl::deregisterEHFrames() {}
|
|||||||
static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
|
static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
|
||||||
dbgs() << "----- Contents of section " << S.Name << " " << State << " -----";
|
dbgs() << "----- Contents of section " << S.Name << " " << State << " -----";
|
||||||
|
|
||||||
|
if (S.Address == nullptr) {
|
||||||
|
dbgs() << "\n <section not emitted>\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const unsigned ColsPerRow = 16;
|
const unsigned ColsPerRow = 16;
|
||||||
|
|
||||||
uint8_t *DataAddr = S.Address;
|
uint8_t *DataAddr = S.Address;
|
||||||
|
Loading…
Reference in New Issue
Block a user