From bce831b1ecda51cd1abd3c07467294ffd21f5f86 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 18 May 2009 22:29:17 +0000 Subject: [PATCH] Rename the factory function for the ObjC rewriter to something sane. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72055 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-cc/ASTConsumers.h | 8 ++++---- tools/clang-cc/RewriteObjC.cpp | 8 ++++---- tools/clang-cc/clang-cc.cpp | 5 ++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/tools/clang-cc/ASTConsumers.h b/tools/clang-cc/ASTConsumers.h index 36fc0b38d0..73c3b83f0b 100644 --- a/tools/clang-cc/ASTConsumers.h +++ b/tools/clang-cc/ASTConsumers.h @@ -55,10 +55,10 @@ ASTConsumer *CreateDeclContextPrinter(); // ObjC rewriter: attempts tp rewrite ObjC constructs into pure C code. // This is considered experimental, and only works with Apple's ObjC runtime. -ASTConsumer *CreateCodeRewriterTest(const std::string& InFile, - llvm::raw_ostream* OS, - Diagnostic &Diags, - const LangOptions &LOpts); +ASTConsumer *CreateObjCRewriter(const std::string& InFile, + llvm::raw_ostream* OS, + Diagnostic &Diags, + const LangOptions &LOpts); // LLVM code generator: uses the code generation backend to generate LLVM // assembly. This runs optimizations depending on the CompileOptions diff --git a/tools/clang-cc/RewriteObjC.cpp b/tools/clang-cc/RewriteObjC.cpp index b104747c00..394e6b7c66 100644 --- a/tools/clang-cc/RewriteObjC.cpp +++ b/tools/clang-cc/RewriteObjC.cpp @@ -427,10 +427,10 @@ RewriteObjC::RewriteObjC(std::string inFile, llvm::raw_ostream* OS, "for @try/@finally (code may not execute properly)"); } -ASTConsumer *clang::CreateCodeRewriterTest(const std::string& InFile, - llvm::raw_ostream* OS, - Diagnostic &Diags, - const LangOptions &LOpts) { +ASTConsumer *clang::CreateObjCRewriter(const std::string& InFile, + llvm::raw_ostream* OS, + Diagnostic &Diags, + const LangOptions &LOpts) { return new RewriteObjC(InFile, OS, Diags, LOpts); } diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 6aaa471efe..e60ece8a9f 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -1691,9 +1691,8 @@ static void ProcessInputFile(Preprocessor &PP, PreprocessorFactory &PPF, case RewriteObjC: OS.reset(ComputeOutFile(InFile, "cpp", true, OutPath)); - Consumer.reset(CreateCodeRewriterTest(InFile, OS.get(), - PP.getDiagnostics(), - PP.getLangOptions())); + Consumer.reset(CreateObjCRewriter(InFile, OS.get(), PP.getDiagnostics(), + PP.getLangOptions())); break; case RewriteBlocks: -- 2.40.0