[llvm-branch-commits] [clang-tools-extra-branch] r309593 - Revert r304837

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 31 10:42:25 PDT 2017


Author: hans
Date: Mon Jul 31 10:42:25 2017
New Revision: 309593

URL: http://llvm.org/viewvc/llvm-project?rev=309593&view=rev
Log:
Revert r304837

Modified:
    clang-tools-extra/branches/release_50/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp

Modified: clang-tools-extra/branches/release_50/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/branches/release_50/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp?rev=309593&r1=309592&r2=309593&view=diff
==============================================================================
--- clang-tools-extra/branches/release_50/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp (original)
+++ clang-tools-extra/branches/release_50/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp Mon Jul 31 10:42:25 2017
@@ -82,8 +82,8 @@ private:
 };
 } // namespace
 
-static void printVersion(raw_ostream &OS) {
-  OS << "clang-apply-replacements version " CLANG_VERSION_STRING << "\n";
+static void printVersion() {
+  outs() << "clang-apply-replacements version " CLANG_VERSION_STRING << "\n";
 }
 
 /// \brief Convenience function to get rewritten content for \c Filename from
@@ -199,7 +199,7 @@ applyFormatting(const std::vector<toolin
 int main(int argc, char **argv) {
   cl::HideUnrelatedOptions(makeArrayRef(VisibleCategories));
 
-  cl::SetVersionPrinter(printVersion);
+  cl::SetVersionPrinter(&printVersion);
   cl::ParseCommandLineOptions(argc, argv);
 
   IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts(new DiagnosticOptions());




More information about the llvm-branch-commits mailing list