mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Small error message improvement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,6 +24,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
@ -1470,6 +1471,7 @@ void EmitHookDeclarations(const ToolPropertiesList& ToolProps,
|
|||||||
|
|
||||||
/// run - The back-end entry point.
|
/// run - The back-end entry point.
|
||||||
void LLVMCConfigurationEmitter::run (std::ostream &O) {
|
void LLVMCConfigurationEmitter::run (std::ostream &O) {
|
||||||
|
try {
|
||||||
|
|
||||||
// Emit file header.
|
// Emit file header.
|
||||||
EmitSourceFileHeader("LLVMC Configuration Library", O);
|
EmitSourceFileHeader("LLVMC Configuration Library", O);
|
||||||
@ -1513,4 +1515,7 @@ void LLVMCConfigurationEmitter::run (std::ostream &O) {
|
|||||||
EmitPopulateCompilationGraph(CompilationGraphRecord, O);
|
EmitPopulateCompilationGraph(CompilationGraphRecord, O);
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
} catch (std::exception& Error) {
|
||||||
|
throw Error.what() + std::string(" - usually this means a syntax error.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user