From: John McCall Date: Mon, 7 May 2012 06:16:49 +0000 (+0000) Subject: There is no reason for these methods to be out-of-line. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f152e65074b70e8c13c876ed8b552cb1e6194d7;p=clang There is no reason for these methods to be out-of-line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 42333ea15d..d8156ff197 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -4422,8 +4422,17 @@ public: } }; - void ActOnStartSuppressingAccessChecks(); - void ActOnStopSuppressingAccessChecks(); + void ActOnStartSuppressingAccessChecks() { + assert(!SuppressAccessChecking && + "Tried to start access check suppression when already started."); + SuppressAccessChecking = true; + } + + void ActOnStopSuppressingAccessChecks() { + assert(SuppressAccessChecking && + "Tried to stop access check suprression when already stopped."); + SuppressAccessChecking = false; + } enum AbstractDiagSelID { AbstractNone = -1, diff --git a/lib/Sema/SemaAccess.cpp b/lib/Sema/SemaAccess.cpp index 6226941951..13bb6dc7db 100644 --- a/lib/Sema/SemaAccess.cpp +++ b/lib/Sema/SemaAccess.cpp @@ -1836,15 +1836,3 @@ bool Sema::IsSimplyAccessible(NamedDecl *Decl, DeclContext *Ctx) { return true; } - -void Sema::ActOnStartSuppressingAccessChecks() { - assert(!SuppressAccessChecking && - "Tried to start access check suppression when already started."); - SuppressAccessChecking = true; -} - -void Sema::ActOnStopSuppressingAccessChecks() { - assert(SuppressAccessChecking && - "Tried to stop access check suprression when already stopped."); - SuppressAccessChecking = false; -}