From 914ed193cdb4ffbf41ada462d3de54cf5d7b6070 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 14 Dec 2015 20:37:15 +0000 Subject: [PATCH] Fix formatting. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255541 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-profdata/llvm-profdata.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index 10b6855233d..152c203f83c 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -32,8 +32,7 @@ using namespace llvm; enum ProfileFormat { PF_None = 0, PF_Text, PF_Binary, PF_GCC }; -static void exitWithError(const Twine &Message, - StringRef Whence = "", +static void exitWithError(const Twine &Message, StringRef Whence = "", StringRef Hint = "") { errs() << "error: "; if (!Whence.empty()) @@ -58,14 +57,13 @@ static void exitWithErrorCode(const std::error_code &Error, } namespace { - enum ProfileKinds { instr, sample }; +enum ProfileKinds { instr, sample }; } static void handleMergeWriterError(std::error_code &Error, StringRef WhenceFile = "", StringRef WhenceFunction = "", - bool ShowHint = true) -{ + bool ShowHint = true) { if (!WhenceFile.empty()) errs() << WhenceFile << ": "; if (!WhenceFunction.empty()) @@ -80,7 +78,7 @@ static void handleMergeWriterError(std::error_code &Error, case instrprof_error::hash_mismatch: case instrprof_error::count_mismatch: case instrprof_error::value_site_count_mismatch: - Hint = "Make sure that all profile data to be merged is generated " \ + Hint = "Make sure that all profile data to be merged is generated " "from the same binary."; break; default: @@ -381,8 +379,7 @@ int main(int argc, const char *argv[]) { return func(argc - 1, argv + 1); } - if (strcmp(argv[1], "-h") == 0 || - strcmp(argv[1], "-help") == 0 || + if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "-help") == 0 || strcmp(argv[1], "--help") == 0) { errs() << "OVERVIEW: LLVM profile data tools\n\n" -- 2.34.1