Deleted Added
full compact
DeclGroup.cpp (193326) DeclGroup.cpp (201361)
1//===--- DeclGroup.cpp - Classes for representing groups of Decls -*- C++ -*-==//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 18 unchanged lines hidden (view full) ---

27
28DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) {
29 assert(numdecls > 0);
30 assert(decls);
31 memcpy(this+1, decls, numdecls * sizeof(*decls));
32}
33
34void DeclGroup::Destroy(ASTContext& C) {
1//===--- DeclGroup.cpp - Classes for representing groups of Decls -*- C++ -*-==//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 18 unchanged lines hidden (view full) ---

27
28DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) {
29 assert(numdecls > 0);
30 assert(decls);
31 memcpy(this+1, decls, numdecls * sizeof(*decls));
32}
33
34void DeclGroup::Destroy(ASTContext& C) {
35 // Decls are destroyed by the DeclContext.
35 this->~DeclGroup();
36 C.Deallocate((void*) this);
37}
36 this->~DeclGroup();
37 C.Deallocate((void*) this);
38}