projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b1e1a4
)
[Support] Remove SaveOr which is no longer used
author
Fangrui Song
<maskray@google.com>
Tue, 3 Jul 2018 23:31:19 +0000
(23:31 +0000)
committer
Fangrui Song
<maskray@google.com>
Tue, 3 Jul 2018 23:31:19 +0000
(23:31 +0000)
llvm-svn: 336237
llvm/include/llvm/Support/SaveAndRestore.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/SaveAndRestore.h
b/llvm/include/llvm/Support/SaveAndRestore.h
index
ef154ac
..
8e11789
100644
(file)
--- a/
llvm/include/llvm/Support/SaveAndRestore.h
+++ b/
llvm/include/llvm/Support/SaveAndRestore.h
@@
-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