mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:16:06 +00:00
Remove Stmt::operator new that takes a ASTContext*. All callers use the ASTContext& version.
llvm-svn: 188644
This commit is contained in:
parent
55349a29c6
commit
260f7e6893
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user