@@ -504,10 +504,7 @@ class LowerTypeTestsModule {
504
504
void importTypeTest (CallInst *CI);
505
505
void importFunction (Function *F, bool isJumpTableCanonical);
506
506
507
- BitSetInfo
508
- buildBitSet (Metadata *TypeId,
509
- const DenseMap<GlobalTypeMember *, uint64_t > &GlobalLayout);
510
- ByteArrayInfo *createByteArray (BitSetInfo &BSI);
507
+ ByteArrayInfo *createByteArray (const BitSetInfo &BSI);
511
508
void allocateByteArrays ();
512
509
Value *createBitSetTest (IRBuilder<> &B, const TypeIdLowering &TIL,
513
510
Value *BitOffset);
@@ -578,9 +575,9 @@ class LowerTypeTestsModule {
578
575
579
576
// / Build a bit set for TypeId using the object layouts in
580
577
// / GlobalLayout.
581
- BitSetInfo LowerTypeTestsModule::buildBitSet (
582
- Metadata *TypeId,
583
- const DenseMap<GlobalTypeMember *, uint64_t > &GlobalLayout) {
578
+ static BitSetInfo
579
+ buildBitSet ( Metadata *TypeId,
580
+ const DenseMap<GlobalTypeMember *, uint64_t > &GlobalLayout) {
584
581
BitSetBuilder BSB;
585
582
586
583
// Compute the byte offset of each address associated with this type
@@ -615,7 +612,7 @@ static Value *createMaskedBitTest(IRBuilder<> &B, Value *Bits,
615
612
return B.CreateICmpNE (MaskedBits, ConstantInt::get (BitsType, 0 ));
616
613
}
617
614
618
- ByteArrayInfo *LowerTypeTestsModule::createByteArray (BitSetInfo &BSI) {
615
+ ByteArrayInfo *LowerTypeTestsModule::createByteArray (const BitSetInfo &BSI) {
619
616
// Create globals to stand in for byte arrays and masks. These never actually
620
617
// get initialized, we RAUW and erase them later in allocateByteArrays() once
621
618
// we know the offset and mask to use.
0 commit comments