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
diff --git a/tools/clang-cc/ASTConsumers.h b/tools/clang-cc/ASTConsumers.h
index 36fc0b3..73c3b83 100644
--- a/tools/clang-cc/ASTConsumers.h
+++ b/tools/clang-cc/ASTConsumers.h
@@ -55,10 +55,10 @@
 
 // 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 b104747..394e6b7 100644
--- a/tools/clang-cc/RewriteObjC.cpp
+++ b/tools/clang-cc/RewriteObjC.cpp
@@ -427,10 +427,10 @@
                "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 6aaa471..e60ece8 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -1691,9 +1691,8 @@
 
   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: