]> granicus.if.org Git - clang/commitdiff
Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext...
authorCraig Topper <craig.topper@gmail.com>
Sun, 18 Aug 2013 20:03:21 +0000 (20:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 18 Aug 2013 20:03:21 +0000 (20:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188644 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h
lib/AST/Stmt.cpp

index bc5dabb5ac90774f359486aa0710130febde0fdc..3460c8ead30f107467e84a2adda8b86b73c7872a 100644 (file)
@@ -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;
   }
index a80bd87d216b4aff52bd16cc9c39780b445ac889..9b271c81acdafdf393f512dc0a31d36b1078ade0 100644 (file)
@@ -54,11 +54,6 @@ void *Stmt::operator new(size_t bytes, const ASTContext& 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;
 }