[cfe-commits] r66243 - in /cfe/trunk/lib/CodeGen: CGBlocks.cpp CGBlocks.h CGDecl.cpp

Mike Stump mrs at apple.com
Thu Mar 5 18:45:21 PST 2009


Author: mrs
Date: Thu Mar  5 20:45:21 2009
New Revision: 66243

URL: http://llvm.org/viewvc/llvm-project?rev=66243&view=rev
Log:
Remove extra arg.

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp
    cfe/trunk/lib/CodeGen/CGBlocks.h
    cfe/trunk/lib/CodeGen/CGDecl.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=66243&r1=66242&r2=66243&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Thu Mar  5 20:45:21 2009
@@ -825,7 +825,7 @@
                                           FunctionDecl::Static, false,
                                           true);
   CGF.StartFunction(FD, R, Fn, Args, SourceLocation());
-  // EmitStmt(BExpr->getBody());
+  // BuildBlockRelease(Src, flag);
   CGF.FinishFunction();
 
   return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty);
@@ -853,7 +853,7 @@
   return CGM.BlockObjectDispose;
 }
 
-void BlockFunction::BuildBlockRelease(const VarDecl &D, llvm::Value *DeclPtr) {
+void BlockFunction::BuildBlockRelease(llvm::Value *DeclPtr) {
   llvm::Value *F = getBlockObjectDispose();
   llvm::Value *N, *V;
   V = Builder.CreateStructGEP(DeclPtr, 1, "forwarding");

Modified: cfe/trunk/lib/CodeGen/CGBlocks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.h?rev=66243&r1=66242&r2=66243&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.h (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.h Thu Mar  5 20:45:21 2009
@@ -170,7 +170,7 @@
   llvm::Constant *BuildbyrefDestroyHelper(int flag);
 
   llvm::Value *getBlockObjectDispose();
-  void BuildBlockRelease(const VarDecl &D, llvm::Value *DeclPtr);
+  void BuildBlockRelease(llvm::Value *DeclPtr);
 
   bool BlockRequiresCopying(QualType Ty) {
     if (Ty->isBlockPointerType())

Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=66243&r1=66242&r2=66243&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Thu Mar  5 20:45:21 2009
@@ -400,7 +400,7 @@
 
   if (needsDispose && CGM.getLangOptions().getGCMode() != LangOptions::GCOnly) {
     CleanupScope scope(*this);
-    BuildBlockRelease(D, DeclPtr);
+    BuildBlockRelease(DeclPtr);
   }
 }
 





More information about the cfe-commits mailing list