File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 18
18
#define LLVM_CODEGEN_MACHINEFUNCTION_H
19
19
20
20
#include " llvm/ADT/ArrayRef.h"
21
- #include " llvm/ADT/BitVector.h"
22
21
#include " llvm/ADT/DenseMap.h"
23
22
#include " llvm/ADT/GraphTraits.h"
24
23
#include " llvm/ADT/SmallVector.h"
34
33
#include " llvm/Support/Compiler.h"
35
34
#include " llvm/Support/Recycler.h"
36
35
#include " llvm/Target/TargetOptions.h"
36
+ #include < bitset>
37
37
#include < cassert>
38
38
#include < cstdint>
39
39
#include < memory>
@@ -217,22 +217,21 @@ class MachineFunctionProperties {
217
217
}
218
218
219
219
MachineFunctionProperties &reset (const MachineFunctionProperties &MFP) {
220
- Properties. reset ( MFP.Properties ) ;
220
+ Properties &= ~ MFP.Properties ;
221
221
return *this ;
222
222
}
223
223
224
224
// Returns true if all properties set in V (i.e. required by a pass) are set
225
225
// in this.
226
226
bool verifyRequiredProperties (const MachineFunctionProperties &V) const {
227
- return ! V.Properties . test (Properties );
227
+ return (Properties | ~ V.Properties ). all ( );
228
228
}
229
229
230
230
// / Print the MachineFunctionProperties in human-readable form.
231
231
void print (raw_ostream &OS) const ;
232
232
233
233
private:
234
- BitVector Properties =
235
- BitVector (static_cast <unsigned >(Property::LastProperty)+1 );
234
+ std::bitset<static_cast <unsigned >(Property::LastProperty) + 1 > Properties;
236
235
};
237
236
238
237
struct SEHHandler {
You can’t perform that action at this time.
0 commit comments