From c2a99813e408651eee2a1d6a5dbf4edc10ce6827 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 18 Aug 2013 20:03:21 +0000 Subject: [PATCH] Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188644 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Stmt.h | 3 --- lib/AST/Stmt.cpp | 5 ----- 2 files changed, 8 deletions(-) diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index bc5dabb5ac..3460c8ead3 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -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; } diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index a80bd87d21..9b271c81ac 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -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; } -- 2.40.0