mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #70900 from mikeash/swift-generic-metadata-builder-out-of-process
[Tools] Add a library to build specialized generic metadata out of process.
This commit is contained in:
@@ -590,8 +590,12 @@ public:
|
||||
using ValueTy = PointeeTy;
|
||||
using PointerTy = PointeeTy*;
|
||||
|
||||
Offset getOffset() const & {
|
||||
return RelativeOffsetPlusInt & ~getMask();
|
||||
}
|
||||
|
||||
PointerTy getPointer() const & {
|
||||
Offset offset = (RelativeOffsetPlusInt & ~getMask());
|
||||
Offset offset = getOffset();
|
||||
|
||||
// Check for null.
|
||||
if (Nullable && offset == 0)
|
||||
@@ -624,6 +628,7 @@ class RelativeDirectPointerIntPair<PointeeTy, IntTy, Nullable, Offset,
|
||||
{
|
||||
using super = RelativeDirectPointerIntPairImpl<PointeeTy, IntTy, Nullable, Offset>;
|
||||
public:
|
||||
using super::getOffset;
|
||||
using super::getPointer;
|
||||
using super::getInt;
|
||||
using super::getOpaqueValue;
|
||||
|
||||
Reference in New Issue
Block a user