[cfe-commits] r72055 - in /cfe/trunk/tools/clang-cc: ASTConsumers.h RewriteObjC.cpp clang-cc.cpp
Eli Friedman
eli.friedman at gmail.com
Mon May 18 15:29:17 PDT 2009
Author: efriedma
Date: Mon May 18 17:29:17 2009
New Revision: 72055
URL: http://llvm.org/viewvc/llvm-project?rev=72055&view=rev
Log:
Rename the factory function for the ObjC rewriter to something sane.
Modified:
cfe/trunk/tools/clang-cc/ASTConsumers.h
cfe/trunk/tools/clang-cc/RewriteObjC.cpp
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/ASTConsumers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/ASTConsumers.h?rev=72055&r1=72054&r2=72055&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/ASTConsumers.h (original)
+++ cfe/trunk/tools/clang-cc/ASTConsumers.h Mon May 18 17:29:17 2009
@@ -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
Modified: cfe/trunk/tools/clang-cc/RewriteObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/RewriteObjC.cpp?rev=72055&r1=72054&r2=72055&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/RewriteObjC.cpp (original)
+++ cfe/trunk/tools/clang-cc/RewriteObjC.cpp Mon May 18 17:29:17 2009
@@ -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);
}
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=72055&r1=72054&r2=72055&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Mon May 18 17:29:17 2009
@@ -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:
More information about the cfe-commits
mailing list