aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/TableGen
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-10-25 16:35:18 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-10-25 16:35:18 +0000
commit0eafc7fc37e48b27aad907bcdf0b726d2e6a9af8 (patch)
treea72567537c4104bfb7aed5067fb0d73f1ad42a24 /include/llvm/TableGen
parent8e4e0074092f5e6e429f4ac5415a82a8423ec4f9 (diff)
downloadexternal_llvm-0eafc7fc37e48b27aad907bcdf0b726d2e6a9af8.zip
external_llvm-0eafc7fc37e48b27aad907bcdf0b726d2e6a9af8.tar.gz
external_llvm-0eafc7fc37e48b27aad907bcdf0b726d2e6a9af8.tar.bz2
In preparation for removing exception handling in tablegen, add
PrintFatalError, which combines PrintError with exit(1). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/TableGen')
-rw-r--r--include/llvm/TableGen/Error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Error.h b/include/llvm/TableGen/Error.h
index 5c1c3ad..3f7b7f4 100644
--- a/include/llvm/TableGen/Error.h
+++ b/include/llvm/TableGen/Error.h
@@ -40,6 +40,9 @@ void PrintError(const char *Loc, const Twine &Msg);
void PrintError(const Twine &Msg);
void PrintError(const TGError &Error);
+LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const std::string &Msg);
+LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
+ const std::string &Msg);
extern SourceMgr SrcMgr;