From: Mikhail Glushenkov Date: Fri, 30 May 2008 06:21:48 +0000 (+0000) Subject: Small error message improvement. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4fb71eae48279b7e643b34b6b857f95be7eedb09;p=oota-llvm.git Small error message improvement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51747 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index a4bd3259c76..b978c294501 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include using namespace llvm; @@ -1470,6 +1471,7 @@ void EmitHookDeclarations(const ToolPropertiesList& ToolProps, /// run - The back-end entry point. void LLVMCConfigurationEmitter::run (std::ostream &O) { + try { // Emit file header. EmitSourceFileHeader("LLVMC Configuration Library", O); @@ -1513,4 +1515,7 @@ void LLVMCConfigurationEmitter::run (std::ostream &O) { EmitPopulateCompilationGraph(CompilationGraphRecord, O); // EOF + } catch (std::exception& Error) { + throw Error.what() + std::string(" - usually this means a syntax error."); + } }