Lines Matching +full:no +full:- +full:temp +full:- +full:support
1 //===- MachOUniversalWriter.cpp - MachO universal binary writer---*- C++-*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
22 #include "llvm/Support/Casting.h"
23 #include "llvm/Support/ErrorHandling.h"
24 #include "llvm/Support/FileSystem.h"
25 #include "llvm/Support/MathExtras.h"
26 #include "llvm/Support/MemoryBufferRef.h"
27 #include "llvm/Support/SwapByteOrder.h"
28 #include "llvm/Support/raw_ostream.h"
134 if (Bin->isMachOUniversalBinary())
136 ("archive member " + Bin->getFileName() +
140 if (Bin->isMachO()) {
146 StringRef PreviousName = MFO ? MFO->getFileName() : IRFO->getFileName();
149 ("archive member " + O->getFileName() + " cputype (" +
153 Twine(CPU->first) + ") and cpusubtype(" + Twine(CPU->second) +
164 } else if (Bin->isIR()) {
167 getMachoCPUFromTriple(O->getTargetTriple());
174 IRFO ? IRFO->getFileName() : MFO->getFileName();
177 ("archive member " + O->getFileName() + " cputype (" +
178 Twine(ObjectCPU->first) + ") and cpusubtype(" +
179 Twine(ObjectCPU->second) +
181 Twine(CPU->first) + ") and cpusubtype(" + Twine(CPU->second) +
195 ("archive member " + Bin->getFileName() +
206 ("empty archive with no architecture specification: " +
212 Slice ArchiveSlice(*(MFO), MFO->is64Bit() ? 3 : 2);
274 Twine(FatArchTraits<FatArchTy>::BitCount) + "-bits and the offset " +
275 Twine(Offset) + " for " + S.getBinary()->getFileName() +
284 FatArch.size = S.getBinary()->getMemoryBufferRef().getBufferSize();
320 MemoryBufferRef BufferRef = Slices[Index].getBinary()->getMemoryBufferRef();
322 Out.write_zeros(FatArchList[Index].offset - Offset);
356 return sys::fs::can_execute(S.getBinary()->getFileName());
361 Expected<sys::fs::TempFile> Temp = sys::fs::TempFile::create(
362 OutputFileName + ".temp-universal-%%%%%%", Mode);
363 if (!Temp)
364 return Temp.takeError();
365 raw_fd_ostream Out(Temp->FD, false);
367 if (Error DiscardError = Temp->discard())
371 return Temp->keep(OutputFileName);