[Support] Remove SaveOr which is no longer used
authorFangrui Song <maskray@google.com>
Tue, 3 Jul 2018 23:31:19 +0000 (23:31 +0000)
committerFangrui Song <maskray@google.com>
Tue, 3 Jul 2018 23:31:19 +0000 (23:31 +0000)
llvm-svn: 336237

llvm/include/llvm/Support/SaveAndRestore.h

index ef154ac..8e11789 100644 (file)
@@ -32,18 +32,6 @@ private:
   T OldValue;
 };
 
-/// Similar to \c SaveAndRestore.  Operates only on bools; the old value of a
-/// variable is saved, and during the dstor the old value is or'ed with the new
-/// value.
-struct SaveOr {
-  SaveOr(bool &X) : X(X), OldValue(X) { X = false; }
-  ~SaveOr() { X |= OldValue; }
-
-private:
-  bool &X;
-  const bool OldValue;
-};
-
 } // namespace llvm
 
 #endif