diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-08 18:44:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-08 18:44:05 +0000 |
commit | 81cb8caa3eb482d45e0fd54f8022384256619178 (patch) | |
tree | 7658fcb12c47b87398f298b14fafb207d358089d /utils/TableGen | |
parent | db5a71a8e01ed9a0d93a19176df6ea0aea510d7b (diff) | |
download | external_llvm-81cb8caa3eb482d45e0fd54f8022384256619178.zip external_llvm-81cb8caa3eb482d45e0fd54f8022384256619178.tar.gz external_llvm-81cb8caa3eb482d45e0fd54f8022384256619178.tar.bz2 |
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')
-rw-r--r-- | utils/TableGen/TableGen.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index 6015814..90fba06 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; } |