[MachO] pointer align linker generated (non)lazy pointers

llvm-svn: 193551
This commit is contained in:
Nick Kledzik 2013-10-28 22:48:33 +00:00
parent b6decb0a80
commit 58ea44993b
2 changed files with 16 additions and 1 deletions

View File

@ -142,6 +142,10 @@ public:
return DefinedAtom::typeLazyPointer;
}
virtual Alignment alignment() const {
return Alignment(2);
}
virtual uint64_t size() const {
return 4;
}
@ -176,6 +180,10 @@ public:
return DefinedAtom::typeGOT;
}
virtual Alignment alignment() const {
return Alignment(2);
}
virtual uint64_t size() const {
return 4;
}

View File

@ -143,6 +143,10 @@ public:
return DefinedAtom::typeLazyPointer;
}
virtual Alignment alignment() const {
return Alignment(3);
}
virtual uint64_t size() const {
return 8;
}
@ -156,7 +160,6 @@ public:
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
return ArrayRef<uint8_t>(bytes, 8);
}
};
@ -178,6 +181,10 @@ public:
return DefinedAtom::typeGOT;
}
virtual Alignment alignment() const {
return Alignment(3);
}
virtual uint64_t size() const {
return 8;
}