[llvm-commits] [llvm] r51747 - /llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Mikhail Glushenkov
foldr at codedgers.com
Thu May 29 23:21:48 PDT 2008
Author: foldr
Date: Fri May 30 01:21:48 2008
New Revision: 51747
URL: http://llvm.org/viewvc/llvm-project?rev=51747&view=rev
Log:
Small error message improvement.
Modified:
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=51747&r1=51746&r2=51747&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Fri May 30 01:21:48 2008
@@ -24,6 +24,7 @@
#include <algorithm>
#include <cassert>
#include <functional>
+#include <stdexcept>
#include <string>
using namespace llvm;
@@ -1470,6 +1471,7 @@
/// 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 @@
EmitPopulateCompilationGraph(CompilationGraphRecord, O);
// EOF
+ } catch (std::exception& Error) {
+ throw Error.what() + std::string(" - usually this means a syntax error.");
+ }
}
More information about the llvm-commits
mailing list