[llvm-commits] [dragonegg] r129458 - /dragonegg/trunk/include/dragonegg/Internals.h
Duncan Sands
baldrick at free.fr
Wed Apr 13 11:55:33 PDT 2011
Author: baldrick
Date: Wed Apr 13 13:55:32 2011
New Revision: 129458
URL: http://llvm.org/viewvc/llvm-project?rev=129458&view=rev
Log:
Declare DieAbjectly as being noreturn to get rid of some warnings.
Modified:
dragonegg/trunk/include/dragonegg/Internals.h
Modified: dragonegg/trunk/include/dragonegg/Internals.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/include/dragonegg/Internals.h?rev=129458&r1=129457&r2=129458&view=diff
==============================================================================
--- dragonegg/trunk/include/dragonegg/Internals.h (original)
+++ dragonegg/trunk/include/dragonegg/Internals.h Wed Apr 13 13:55:32 2011
@@ -112,14 +112,16 @@
/// DieAbjectly - An unrecoverable fatal error occurred - throw in the towel,
/// give up the ghost, quit miserably.
-inline void DieAbjectly(const char *Message) {
+inline void LLVM_ATTRIBUTE_NORETURN DieAbjectly(const char *Message) {
llvm_unreachable(Message);
}
-inline void DieAbjectly(const char *Message, union gimple_statement_d *stmt) {
+inline void LLVM_ATTRIBUTE_NORETURN DieAbjectly(const char *Message,
+ union gimple_statement_d *stmt){
if (stmt) debug_gimple_stmt(stmt);
DieAbjectly(Message);
}
-inline void DieAbjectly(const char *Message, union tree_node *exp) {
+inline void LLVM_ATTRIBUTE_NORETURN DieAbjectly(const char *Message,
+ union tree_node *exp) {
if (exp) debug_tree(exp);
DieAbjectly(Message);
}
More information about the llvm-commits
mailing list