]> granicus.if.org Git - clang/commitdiff
Rename the factory function for the ObjC rewriter to something sane.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 22:29:17 +0000 (22:29 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 18 May 2009 22:29:17 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72055 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/ASTConsumers.h
tools/clang-cc/RewriteObjC.cpp
tools/clang-cc/clang-cc.cpp

index 36fc0b38d052aa9a694e8f287c976b8eac90c268..73c3b83f0b7217a331abb2305aaa3c550809c093 100644 (file)
@@ -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
index b104747c00c4c8b859a5036fffb2047ee04f364d..394e6b7c66d0c40577cde2986dd3fd189a021baf 100644 (file)
@@ -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);
 }
 
index 6aaa471efeaa4abeb612a2a42dd0179a211d0d9a..e60ece8a9fce3496c35145f7c416317a98f33c1f 100644 (file)
@@ -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: