summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-05-15 21:26:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-05-15 21:26:47 +0000
commit651d0bf9dc6165cad9767ef77fdfdb8c169d60a4 (patch)
tree70b6122078b86851748878aeb7355e1dc580b406 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parent3c569f0de0a60c6fc24f9aa1e62bc305a9950312 (diff)
downloadbcm5719-llvm-651d0bf9dc6165cad9767ef77fdfdb8c169d60a4.tar.gz
bcm5719-llvm-651d0bf9dc6165cad9767ef77fdfdb8c169d60a4.zip
Move helper classes into anonymous namespaces. NFCI.
llvm-svn: 332400
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 42f1ceac673..7373331a638 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -1470,9 +1470,10 @@ createConstantGlobalStruct(CodeGenModule &CGM, QualType Ty,
}
template <typename T>
-void createConstantGlobalStructAndAddToParent(CodeGenModule &CGM, QualType Ty,
- ArrayRef<llvm::Constant *> Data,
- T &Parent) {
+static void
+createConstantGlobalStructAndAddToParent(CodeGenModule &CGM, QualType Ty,
+ ArrayRef<llvm::Constant *> Data,
+ T &Parent) {
const auto *RD = cast<RecordDecl>(Ty->getAsTagDecl());
const CGRecordLayout &RL = CGM.getTypes().getCGRecordLayout(RD);
ConstantStructBuilder Fields = Parent.beginStruct(RL.getLLVMType());
OpenPOWER on IntegriCloud