From: Craig Topper Date: Sun, 18 Aug 2013 20:03:21 +0000 (+0000) Subject: Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=260f7e6893e2ac6d23173fad89721ab1538f4224;p=platform%2Fupstream%2Fllvm.git Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version. llvm-svn: 188644 --- diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index bc5dabb..3460c8e 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 a80bd87..9b271c8 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; }