diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-08-18 20:03:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-08-18 20:03:21 +0000 |
commit | 260f7e6893e2ac6d23173fad89721ab1538f4224 (patch) | |
tree | ab38731396e18295cef3418422738994834ad32a | |
parent | 55349a29c6fd26912da27cbda6f17e3cf89addac (diff) | |
download | bcm5719-llvm-260f7e6893e2ac6d23173fad89721ab1538f4224.tar.gz bcm5719-llvm-260f7e6893e2ac6d23173fad89721ab1538f4224.zip |
Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version.
llvm-svn: 188644
-rw-r--r-- | clang/include/clang/AST/Stmt.h | 3 | ||||
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index bc5dabb5ac9..3460c8ead30 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 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; } |