From e691fce6e4b51fe1f8a4175ada157223fed539f6 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 19 Aug 2013 03:11:34 +0000 Subject: Make the version of Stmt::operator new that takes ASTContext* call the ASTContext& version in Stmt inline instead of having two out of line functions that both call to the global versions. llvm-svn: 188648 --- clang/lib/AST/Stmt.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/AST/Stmt.cpp') diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index a80bd87d216..9b271c81acd 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; } -- cgit v1.2.3