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)
llvm-svn: 188644

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

index bc5dabb..3460c8e 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 a80bd87..9b271c8 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;
 }