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:
Mike Ash
2024-01-26 10:50:34 -05:00
committed by GitHub
39 changed files with 3873 additions and 208 deletions

View File

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