瀏覽代碼

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
John McCall 13 年之前
父節點
當前提交
3f152e6507
共有 2 個文件被更改,包括 11 次插入14 次删除
  1. 11 2
      include/clang/Sema/Sema.h
  2. 0 12
      lib/Sema/SemaAccess.cpp

+ 11 - 2
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,

+ 0 - 12
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;
-}