summaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGen.cpp
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
commit81cb8caa3eb482d45e0fd54f8022384256619178 (patch)
tree7658fcb12c47b87398f298b14fafb207d358089d /utils/TableGen/TableGen.cpp
parentdb5a71a8e01ed9a0d93a19176df6ea0aea510d7b (diff)
downloadllvm-81cb8caa3eb482d45e0fd54f8022384256619178.tar.gz
llvm-81cb8caa3eb482d45e0fd54f8022384256619178.tar.bz2
llvm-81cb8caa3eb482d45e0fd54f8022384256619178.tar.xz
Add a new little "FileCheck" utility for regression testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 601581497a..90fba063c5 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/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;
}