r188644 - Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version.

Craig Topper craig.topper at gmail.com
Sun Aug 18 13:03:22 PDT 2013


Author: ctopper
Date: Sun Aug 18 15:03:21 2013
New Revision: 188644

URL: http://llvm.org/viewvc/llvm-project?rev=188644&view=rev
Log:
Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version.

Modified:
    cfe/trunk/include/clang/AST/Stmt.h
    cfe/trunk/lib/AST/Stmt.cpp

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=188644&r1=188643&r2=188644&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Sun Aug 18 15:03:21 2013
@@ -315,9 +315,6 @@ public:
   void* operator new(size_t bytes, const ASTContext& C,
                      unsigned alignment = 8);
 
-  void* operator new(size_t bytes, const ASTContext* C,
-                     unsigned alignment = 8);
-
   void* operator new(size_t bytes, void* mem) throw() {
     return mem;
   }

Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=188644&r1=188643&r2=188644&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Sun Aug 18 15:03:21 2013
@@ -54,11 +54,6 @@ void *Stmt::operator new(size_t bytes, c
   return ::operator new(bytes, C, alignment);
 }
 
-void *Stmt::operator new(size_t bytes, const ASTContext* C,
-                         unsigned alignment) {
-  return ::operator new(bytes, *C, alignment);
-}
-
 const char *Stmt::getStmtClassName() const {
   return getStmtInfoTableEntry((StmtClass) StmtBits.sClass).Name;
 }





More information about the cfe-commits mailing list