Skip to content

Commit a5ce547

Browse files
committed
Use anonymous namespace
1 parent 571181b commit a5ce547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Analysis/KernelInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ using namespace llvm;
2828

2929
#define DEBUG_TYPE "kernel-info"
3030

31+
namespace {
32+
3133
/// Data structure holding function info for kernels.
3234
class KernelInfo {
3335
void updateForBB(const BasicBlock &BB, int64_t Direction,
@@ -75,6 +77,8 @@ class KernelInfo {
7577
int64_t FlatAddrspaceAccesses = 0;
7678
};
7779

80+
} // end anonymous namespace
81+
7882
static bool isKernelFunction(Function &F) {
7983
// TODO: Is this general enough? Consider languages beyond OpenMP.
8084
return F.hasFnAttribute("kernel");

0 commit comments

Comments
 (0)