X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Ffpcmp%2Ffpcmp.cpp;h=5f6b5e8d6e59bfea15fc1377424ec759b8dd39a4;hb=5900201aa787d4196130cc9e538fe35ae3051a15;hp=d7808dd6f006cb3663534da76a0b366af53b1fcf;hpb=220df9c13de8557173cb71425ea32fe63a55b886;p=oota-llvm.git diff --git a/utils/fpcmp/fpcmp.cpp b/utils/fpcmp/fpcmp.cpp index d7808dd6f00..5f6b5e8d6e5 100644 --- a/utils/fpcmp/fpcmp.cpp +++ b/utils/fpcmp/fpcmp.cpp @@ -1,10 +1,10 @@ //===- 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 @@ -14,7 +14,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileUtilities.h" -#include +#include "llvm/Support/raw_ostream.h" using namespace llvm; namespace { @@ -33,10 +33,11 @@ int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv); std::string ErrorMsg; - int DF = DiffFilesWithTolerance(File1, File2, AbsTolerance, RelTolerance, - &ErrorMsg); + int DF = DiffFilesWithTolerance(sys::PathWithStatus(File1), + sys::PathWithStatus(File2), + AbsTolerance, RelTolerance, &ErrorMsg); if (!ErrorMsg.empty()) - std::cerr << argv[0] << ": " << ErrorMsg << "\n"; + errs() << argv[0] << ": " << ErrorMsg << "\n"; return DF; }