forked from OSchip/llvm-project
[Statepoints] Export a magic constant into a header; NFC
llvm-svn: 263733
This commit is contained in:
parent
fef5c5a27a
commit
c9058ca9e0
|
@ -409,6 +409,8 @@ StatepointBase<FunTy, InstructionTy, ValueTy, CallSiteTy>::getRelocates()
|
|||
struct StatepointDirectives {
|
||||
Optional<uint32_t> NumPatchBytes;
|
||||
Optional<uint64_t> StatepointID;
|
||||
|
||||
static const uint64_t DefaultStatepointID = 0xABCDEF00;
|
||||
};
|
||||
|
||||
/// Parse out statepoint directives from the function attributes present in \p
|
||||
|
|
|
@ -1318,7 +1318,7 @@ makeStatepointExplicitImpl(const CallSite CS, /* to replace */
|
|||
IRBuilder<> Builder(InsertBefore);
|
||||
|
||||
ArrayRef<Value *> GCArgs(LiveVariables);
|
||||
uint64_t StatepointID = 0xABCDEF00;
|
||||
uint64_t StatepointID = StatepointDirectives::DefaultStatepointID;
|
||||
uint32_t NumPatchBytes = 0;
|
||||
uint32_t Flags = uint32_t(StatepointFlags::None);
|
||||
|
||||
|
|
Loading…
Reference in New Issue