summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 17:16:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 17:16:26 +0000
commit5b4296af771b832324ec8b88581c43d92701b31a (patch)
treee3af3bf04f6be647b3ad6db1c91e260825463605
parentc3e3144df20e5b5cbbbfff32afbbbc9f86f01b99 (diff)
downloadbcm5719-llvm-5b4296af771b832324ec8b88581c43d92701b31a.tar.gz
bcm5719-llvm-5b4296af771b832324ec8b88581c43d92701b31a.zip
Move global classes into anonymous namespaces. NFC.
llvm-svn: 251528
-rw-r--r--clang/lib/AST/ExprConstant.cpp2
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index e59902ddd8b..eb1c4981b25 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -2207,6 +2207,7 @@ enum AccessKinds {
AK_Decrement
};
+namespace {
/// A handle to a complete object (an object that is not a subobject of
/// another object).
struct CompleteObject {
@@ -2223,6 +2224,7 @@ struct CompleteObject {
explicit operator bool() const { return Value; }
};
+} // end anonymous namespace
/// Find the designated sub-object of an rvalue.
template<typename SubobjectHandler>
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 6e66f6f5a56..8a2006f18e7 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2847,8 +2847,6 @@ struct DestroyUnpassedArg final : EHScopeStack::Cleanup {
}
};
-}
-
struct DisableDebugLocationUpdates {
CodeGenFunction &CGF;
bool disabledDebugInfo;
@@ -2862,6 +2860,8 @@ struct DisableDebugLocationUpdates {
}
};
+} // end anonymous namespace
+
void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
QualType type) {
DisableDebugLocationUpdates Dis(*this, E);
OpenPOWER on IntegriCloud