//===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===//
-//
+//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
//===----------------------------------------------------------------------===//
//
// fpcmp is a tool that basically works like the 'cmp' tool, except that it can
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileUtilities.h"
-#include <iostream>
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
namespace {
cl::ParseCommandLineOptions(argc, argv);
std::string ErrorMsg;
- int DF = DiffFilesWithTolerance(sys::Path(File1), sys::Path(File2),
- AbsTolerance, RelTolerance, &ErrorMsg);
+ int DF = DiffFilesWithTolerance(File1, File2, AbsTolerance, RelTolerance,
+ &ErrorMsg);
if (!ErrorMsg.empty())
- std::cerr << argv[0] << ": " << ErrorMsg << "\n";
+ errs() << argv[0] << ": " << ErrorMsg << "\n";
return DF;
}