aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/TableGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-20 20:43:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-20 20:43:11 +0000
commitf8ea5a5a27222f3b0f6daaddc47f79fb969c7448 (patch)
tree2c7591084215204aebae95211fad2641000c08fb /include/llvm/TableGen
parent6115ed0e4347f17504f72e4d37545b4230b2cb50 (diff)
downloadexternal_llvm-f8ea5a5a27222f3b0f6daaddc47f79fb969c7448.zip
external_llvm-f8ea5a5a27222f3b0f6daaddc47f79fb969c7448.tar.gz
external_llvm-f8ea5a5a27222f3b0f6daaddc47f79fb969c7448.tar.bz2
Make sure TableGen exits with an error code after printing errors.
This makes it possible to report multiple errors in one invocation. There are already calls to PrintError in CodeGenDAGPatterns.cpp which previously would not cause TableGen to fail. <rdar://problem/13463339> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/TableGen')
-rw-r--r--include/llvm/TableGen/Error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Error.h b/include/llvm/TableGen/Error.h
index 2f6b7e6..2d0a2b4 100644
--- a/include/llvm/TableGen/Error.h
+++ b/include/llvm/TableGen/Error.h
@@ -32,6 +32,7 @@ LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
const std::string &Msg);
extern SourceMgr SrcMgr;
+extern unsigned ErrorsPrinted;
} // end namespace "llvm"