Changes in directory llvm/lib/Support:
FileUtilities.cpp updated: 1.52 -> 1.53 --- Log message: Make the absolute/relative tolerance information easier to read/understand. --- Diffs of the changes: (+3 -2) FileUtilities.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) Index: llvm/lib/Support/FileUtilities.cpp diff -u llvm/lib/Support/FileUtilities.cpp:1.52 llvm/lib/Support/FileUtilities.cpp:1.53 --- llvm/lib/Support/FileUtilities.cpp:1.52 Wed Nov 8 13:16:44 2006 +++ llvm/lib/Support/FileUtilities.cpp Sat Nov 25 02:38:44 2006 @@ -106,8 +106,9 @@ Diff = 0; // Both zero. if (Diff > RelTolerance) { if (ErrorMsg) { - *ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) + - ": diff = " + ftostr(Diff) + "\n"; + *ErrorMsg = "Compared: " + ftostr(V1) + " and " + ftostr(V2) + "\n"; + *ErrorMsg += "abs. diff = " + ftostr(std::abs(V1-V2)) + + " rel.diff = " + ftostr(Diff) + "\n"; *ErrorMsg += "Out of tolerance: rel/abs: " + ftostr(RelTolerance) + "/" + ftostr(AbsTolerance); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits