[Statepoints] Export a magic constant into a header; NFC

llvm-svn: 263733
This commit is contained in:
Sanjoy Das 2016-03-17 18:42:17 +00:00
parent fef5c5a27a
commit c9058ca9e0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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);