Skip to content
Snippets Groups Projects
Commit 07c65192 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

Move global classes into anonymous namespaces. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251528 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4f183b9d
No related branches found
No related tags found
No related merge requests found
...@@ -2207,6 +2207,7 @@ enum AccessKinds { ...@@ -2207,6 +2207,7 @@ enum AccessKinds {
AK_Decrement AK_Decrement
}; };
namespace {
/// A handle to a complete object (an object that is not a subobject of /// A handle to a complete object (an object that is not a subobject of
/// another object). /// another object).
struct CompleteObject { struct CompleteObject {
...@@ -2223,6 +2224,7 @@ struct CompleteObject { ...@@ -2223,6 +2224,7 @@ struct CompleteObject {
explicit operator bool() const { return Value; } explicit operator bool() const { return Value; }
}; };
} // end anonymous namespace
/// Find the designated sub-object of an rvalue. /// Find the designated sub-object of an rvalue.
template<typename SubobjectHandler> template<typename SubobjectHandler>
......
...@@ -2847,8 +2847,6 @@ struct DestroyUnpassedArg final : EHScopeStack::Cleanup { ...@@ -2847,8 +2847,6 @@ struct DestroyUnpassedArg final : EHScopeStack::Cleanup {
} }
}; };
}
struct DisableDebugLocationUpdates { struct DisableDebugLocationUpdates {
CodeGenFunction &CGF; CodeGenFunction &CGF;
bool disabledDebugInfo; bool disabledDebugInfo;
...@@ -2862,6 +2860,8 @@ struct DisableDebugLocationUpdates { ...@@ -2862,6 +2860,8 @@ struct DisableDebugLocationUpdates {
} }
}; };
} // end anonymous namespace
void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E, void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
QualType type) { QualType type) {
DisableDebugLocationUpdates Dis(*this, E); DisableDebugLocationUpdates Dis(*this, E);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment