Move global classes into anonymous namespaces. NFC.

llvm-svn: 251528
This commit is contained in:
Benjamin Kramer 2015-10-28 17:16:26 +00:00
parent c3e3144df2
commit 5b4296af77
2 changed files with 4 additions and 2 deletions

View 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>

View 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);