16 #ifndef LLVM_SUPPORT_SAVEANDRESTORE_H
17 #define LLVM_SUPPORT_SAVEANDRESTORE_H
28 T get() {
return OldValue; }
39 SaveOr(
bool &X) : X(X), OldValue(X) { X =
false; }
Similar to SaveAndRestore.
SaveAndRestore(T &X, const T &NewValue)
A utility class that uses RAII to save and restore the value of a variable.