projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300743f
)
[MCJIT] Don't crash in debugging output for sections that aren't emitted.
author
Lang Hames
<lhames@gmail.com>
Wed, 1 Oct 2014 21:57:47 +0000
(21:57 +0000)
committer
Lang Hames
<lhames@gmail.com>
Wed, 1 Oct 2014 21:57:47 +0000
(21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218836
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 65110752e6c2b6fdab8d585dc614edee4390a6dd..b4f14d3dada53becf320b56b8bbe3cf57972f60b 100644
(file)
--- a/
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@
-45,6
+45,11
@@
void RuntimeDyldImpl::deregisterEHFrames() {}
static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
dbgs() << "----- Contents of section " << S.Name << " " << State << " -----";
+ if (S.Address == nullptr) {
+ dbgs() << "\n <section not emitted>\n";
+ return;
+ }
+
const unsigned ColsPerRow = 16;
uint8_t *DataAddr = S.Address;