// 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
"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);
}
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: