Rename the factory function for the ObjC rewriter to something sane.

llvm-svn: 72055
This commit is contained in:
Eli Friedman 2009-05-18 22:29:17 +00:00
parent e5594d724b
commit a63ab2dc76
3 changed files with 10 additions and 11 deletions

View 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

View 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);
}

View 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: