forked from OSchip/llvm-project
Rename the factory function for the ObjC rewriter to something sane.
llvm-svn: 72055
This commit is contained in:
parent
e5594d724b
commit
a63ab2dc76
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue