summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-08 18:44:05 +0000
committerChris Lattner <sabre@nondot.org>2009-07-08 18:44:05 +0000
commitee3c74fba096626ce8f1a44fb7c4197647ff5d6c (patch)
tree7db59e0cd23d0aca38436daa4bf5fb8c5d2e48d4 /llvm/utils/TableGen
parent5b2095ce16a591f54838f23ebea488dc52aa7ea3 (diff)
downloadbcm5719-llvm-ee3c74fba096626ce8f1a44fb7c4197647ff5d6c.tar.gz
bcm5719-llvm-ee3c74fba096626ce8f1a44fb7c4197647ff5d6c.zip
Add a new little "FileCheck" utility for regression testing.
llvm-svn: 75022
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index 601581497a5..90fba063c59 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/utils/TableGen/TableGen.cpp
@@ -17,12 +17,6 @@
#include "Record.h"
#include "TGParser.h"
-#include "llvm/Support/CommandLine.h"
-#include "llvm/System/Signals.h"
-#include "llvm/Support/FileUtilities.h"
-#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/PrettyStackTrace.h"
-#include "llvm/Support/raw_ostream.h"
#include "CallingConvEmitter.h"
#include "CodeEmitterGen.h"
#include "RegisterInfoEmitter.h"
@@ -35,6 +29,12 @@
#include "IntrinsicEmitter.h"
#include "LLVMCConfigurationEmitter.h"
#include "ClangDiagnosticsEmitter.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileUtilities.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/PrettyStackTrace.h"
+#include "llvm/Support/raw_ostream.h"
+#include "llvm/System/Signals.h"
#include <algorithm>
#include <cstdio>
using namespace llvm;
@@ -138,7 +138,7 @@ static bool ParseFile(const std::string &Filename,
std::string ErrorStr;
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr);
if (F == 0) {
- errs() << "Could not open input file '" + Filename + "': "
+ errs() << "Could not open input file '" << Filename << "': "
<< ErrorStr <<"\n";
return true;
}
OpenPOWER on IntegriCloud