Skip to content

Commit 456c239

Browse files
committed
[ELF] Set ctx.internalFile for PPC64 _savegpr[01]_{14..31} and _restgpr[01]_{14..31}. NFC
Ensure that every InputFile has a non-null file so that we enforce this in the future.
1 parent 6f31cf5 commit 456c239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Arch/PPC64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void writeSequence(MutableArrayRef<uint32_t> buf, const char *prefix,
286286
// The full section content has the extent of [begin, end). We drop unused
287287
// instructions and write [first,end).
288288
auto *sec = make<InputSection>(
289-
nullptr, SHF_ALLOC, SHT_PROGBITS, 4,
289+
ctx.internalFile, SHF_ALLOC, SHT_PROGBITS, 4,
290290
ArrayRef(reinterpret_cast<uint8_t *>(buf.data() + first),
291291
4 * (buf.size() - first)),
292292
".text");

0 commit comments

Comments
 (0)