From 260f7e6893e2ac6d23173fad89721ab1538f4224 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. llvm-svn: 188644 --- clang/include/clang/AST/Stmt.h | 3 --- clang/lib/AST/Stmt.cpp | 5 ----- 2 files changed, 8 deletions(-) diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index bc5dabb5ac90..3460c8ead30f 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/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/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index a80bd87d216b..9b271c81acda 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/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; }