Skip to content

Commit de863bc

Browse files
committed
[Support] Fix up header comments after splitting Allocator.h, NFC
1 parent dd8e0a0 commit de863bc

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

llvm/include/llvm/Support/Allocator.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
//===----------------------------------------------------------------------===//
88
/// \file
99
///
10-
/// This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both
11-
/// of these conform to an LLVM "Allocator" concept which consists of an
12-
/// Allocate method accepting a size and alignment, and a Deallocate accepting
13-
/// a pointer and size. Further, the LLVM "Allocator" concept has overloads of
14-
/// Allocate and Deallocate for setting size and alignment based on the final
15-
/// type. These overloads are typically provided by a base class template \c
16-
/// AllocatorBase.
10+
/// This file defines the BumpPtrAllocator interface. BumpPtrAllocator conforms
11+
/// to the LLVM "Allocator" concept and is similar to MallocAllocator, but
12+
/// objects cannot be deallocated. Their lifetime is tied to the lifetime of the
13+
/// allocator.
1714
///
1815
//===----------------------------------------------------------------------===//
1916

llvm/include/llvm/Support/AllocatorBase.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- AllocatorBase.h - Simple memory allocation abstraction -------*- C++ -*-===//
1+
//===- AllocatorBase.h - Simple memory allocation abstraction ---*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -7,13 +7,12 @@
77
//===----------------------------------------------------------------------===//
88
/// \file
99
///
10-
/// This file defines the MallocAllocator and BumpPtrAllocator interfaces. Both
11-
/// of these conform to an LLVM "Allocator" concept which consists of an
12-
/// Allocate method accepting a size and alignment, and a Deallocate accepting
13-
/// a pointer and size. Further, the LLVM "Allocator" concept has overloads of
14-
/// Allocate and Deallocate for setting size and alignment based on the final
15-
/// type. These overloads are typically provided by a base class template \c
16-
/// AllocatorBase.
10+
/// This file defines MallocAllocator. MallocAllocator conforms to the LLVM
11+
/// "Allocator" concept which consists of an Allocate method accepting a size
12+
/// and alignment, and a Deallocate accepting a pointer and size. Further, the
13+
/// LLVM "Allocator" concept has overloads of Allocate and Deallocate for
14+
/// setting size and alignment based on the final type. These overloads are
15+
/// typically provided by a base class template \c AllocatorBase.
1716
///
1817
//===----------------------------------------------------------------------===//
1918

0 commit comments

Comments
 (0)