Skip to content

Commit fb43b8f

Browse files
committed
[DTLTO][ELF][COFF] Archive support for DTLTO - Fixed formatting in lld/ELF/InputFiles.cpp.
1 parent d61b606 commit fb43b8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,12 +1821,12 @@ BitcodeFile::BitcodeFile(Ctx &ctx, MemoryBufferRef mb, StringRef archiveName,
18211821
if (ctx.arg.thinLTOIndexOnly)
18221822
path = replaceThinLTOSuffix(ctx, mb.getBufferIdentifier());
18231823

1824-
// ThinLTO assumes that all MemoryBufferRefs given to it have a unique
1825-
// name. If two archives define two members with the same name, this
1826-
// causes a collision which result in only one of the objects being taken
1827-
// into consideration at LTO time (which very likely causes undefined
1828-
// symbols later in the link stage). So we append file offset to make
1829-
// filename unique.
1824+
// ThinLTO assumes that all MemoryBufferRefs given to it have a unique
1825+
// name. If two archives define two members with the same name, this
1826+
// causes a collision which result in only one of the objects being taken
1827+
// into consideration at LTO time (which very likely causes undefined
1828+
// symbols later in the link stage). So we append file offset to make
1829+
// filename unique.
18301830
StringSaver &ss = ctx.saver;
18311831
StringRef name = archiveName.empty()
18321832
? ss.save(path)

0 commit comments

Comments
 (0)