aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-05-07 06:16:49 +0000
committerJohn McCall <rjmccall@apple.com>2012-05-07 06:16:49 +0000
commit3f152e65074b70e8c13c876ed8b552cb1e6194d7 (patch)
tree72877a27b49d04e51601b9998b062ea1a1355076
parent9257664568bf375b7790131a84d9a4fa30a5b7e3 (diff)
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
-rw-r--r--include/clang/Sema/Sema.h13
-rw-r--r--lib/Sema/SemaAccess.cpp12
2 files changed, 11 insertions, 14 deletions
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;
-}