]> granicus.if.org Git - clang/commitdiff
Move global classes into anonymous namespaces. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 28 Oct 2015 17:16:26 +0000 (17:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 28 Oct 2015 17:16:26 +0000 (17:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251528 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp
lib/CodeGen/CGCall.cpp

index e59902ddd8b8d3d56cd5c6336b3e61e3bf47c396..eb1c4981b25f4ca3c6913025691c6d94ff675b9b 100644 (file)
@@ -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>
index 6e66f6f5a56ffc6931622d4f5f50405a4a553a4c..8a2006f18e797af397e9b9895bbee40807036202 100644 (file)
@@ -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);