Skip to content
Snippets Groups Projects
Commit c45df068 authored by Edwin Vane's avatar Edwin Vane
Browse files

Reverting r176944 until Author fixes test failure.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176945 91177308-0d34-0410-b5e6-96231b3b80d8
parent eea6a13b
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "llvm/Support/FileSystem.h" #include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h" #include "llvm/Support/Host.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
// For chdir, see the comment in ClangTool::run for more information. // For chdir, see the comment in ClangTool::run for more information.
#ifdef _WIN32 #ifdef _WIN32
...@@ -296,16 +295,14 @@ int ClangTool::run(FrontendActionFactory *ActionFactory) { ...@@ -296,16 +295,14 @@ int ClangTool::run(FrontendActionFactory *ActionFactory) {
ArgsAdjuster->Adjust(CompileCommands[I].second.CommandLine); ArgsAdjuster->Adjust(CompileCommands[I].second.CommandLine);
assert(!CommandLine.empty()); assert(!CommandLine.empty());
CommandLine[0] = MainExecutable; CommandLine[0] = MainExecutable;
DEBUG({ llvm::outs() << "Processing: " << File << ".\n";
llvm::dbgs() << "Processing: " << File << ".\n";
});
ToolInvocation Invocation(CommandLine, ActionFactory->create(), &Files); ToolInvocation Invocation(CommandLine, ActionFactory->create(), &Files);
for (int I = 0, E = MappedFileContents.size(); I != E; ++I) { for (int I = 0, E = MappedFileContents.size(); I != E; ++I) {
Invocation.mapVirtualFile(MappedFileContents[I].first, Invocation.mapVirtualFile(MappedFileContents[I].first,
MappedFileContents[I].second); MappedFileContents[I].second);
} }
if (!Invocation.run()) { if (!Invocation.run()) {
llvm::errs() << "Error while processing " << File << ".\n"; llvm::outs() << "Error while processing " << File << ".\n";
ProcessingFailed = true; ProcessingFailed = true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment