diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-28 13:54:16 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-28 13:54:16 +0000 |
commit | e003ca2a03b2b4d776628183c988f0e15c44240c (patch) | |
tree | 4cd430467ab5ae850a5f299c31b4d1c9e0a4ae8b /clang/lib/CodeGen | |
parent | 8eb2a18a9fc0f9a4cfc1b1bc419d784b38a975ae (diff) | |
download | bcm5719-llvm-e003ca2a03b2b4d776628183c988f0e15c44240c.tar.gz bcm5719-llvm-e003ca2a03b2b4d776628183c988f0e15c44240c.zip |
Put global classes into the appropriate namespace.
Most of the cases belong into an anonymous namespace. No functionality
change intended.
llvm-svn: 251514
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 4 | ||||
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 7a3bec1bb16..8b8b54ddeb3 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -2111,7 +2111,8 @@ enum { AddRetType | VectorizeRetType | Add1ArgType | InventFloatType }; - struct NeonIntrinsicInfo { +namespace { +struct NeonIntrinsicInfo { unsigned BuiltinID; unsigned LLVMIntrinsic; unsigned AltLLVMIntrinsic; @@ -2122,6 +2123,7 @@ enum { return BuiltinID < RHSBuiltinID; } }; +} // end anonymous namespace #define NEONMAP0(NameBase) \ { NEON::BI__builtin_neon_ ## NameBase, 0, 0, #NameBase, 0 } diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index fc3771c58fd..30811824d53 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -2601,7 +2601,7 @@ void CGOpenMPRuntime::emitTaskCall( /// (references element of array in original variable). /// \param RedOpGen Generator of reduction operation with use of LHSVar and /// RHSVar. -void EmitOMPAggregateReduction( +static void EmitOMPAggregateReduction( CodeGenFunction &CGF, QualType Type, const VarDecl *LHSVar, const VarDecl *RHSVar, const llvm::function_ref<void(CodeGenFunction &CGF, const Expr *, |