mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[examples] fix ExceptionDemo
Code didn't compile in a release build. Guard debug output with ifndef NDEBUG. Differential Revision: https://reviews.llvm.org/D83628
This commit is contained in:
parent
dbcd329511
commit
83b719e51a
@ -792,7 +792,7 @@ _Unwind_Reason_Code ourPersonality(int version, _Unwind_Action actions,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const uint8_t *lsda = _Unwind_GetLanguageSpecificData(context);
|
const uint8_t *lsda = (const uint8_t *)_Unwind_GetLanguageSpecificData(context);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
@ -1959,11 +1959,13 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
executionEngine->finalizeObject();
|
executionEngine->finalizeObject();
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
fprintf(stderr, "\nBegin module dump:\n\n");
|
fprintf(stderr, "\nBegin module dump:\n\n");
|
||||||
|
|
||||||
module->dump();
|
module->dump();
|
||||||
|
|
||||||
fprintf(stderr, "\nEnd module dump:\n");
|
fprintf(stderr, "\nEnd module dump:\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
fprintf(stderr, "\n\nBegin Test:\n");
|
fprintf(stderr, "\n\nBegin Test:\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user