diff options
Diffstat (limited to 'lld/MachO/InputFiles.cpp')
-rw-r--r-- | lld/MachO/InputFiles.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp index 9f0c003d6aa2..31372046840e 100644 --- a/lld/MachO/InputFiles.cpp +++ b/lld/MachO/InputFiles.cpp @@ -2207,10 +2207,9 @@ BitcodeFile::BitcodeFile(MemoryBufferRef mb, StringRef archiveName, MemoryBufferRef mbref(mb.getBuffer(), saver().save(archiveName.empty() ? path - : archiveName + - sys::path::filename(path) + + : archiveName + "(" + + sys::path::filename(path) + ")" + utostr(offsetInArchive))); - obj = check(lto::InputFile::create(mbref)); if (lazy) parseLazy(); |