Lines Matching full:files
66 static void checkFlags(Ctx &ctx, ArrayRef<FileFlags> files) {
67 assert(!files.empty() && "expected non-empty file list");
69 uint32_t abi = files[0].flags & (EF_MIPS_ABI | EF_MIPS_ABI2);
70 bool nan = files[0].flags & EF_MIPS_NAN2008;
71 bool fp = files[0].flags & EF_MIPS_FP64;
73 for (const FileFlags &f : files) {
95 static uint32_t getMiscFlags(ArrayRef<FileFlags> files) {
97 for (const FileFlags &f : files)
104 static uint32_t getPicFlags(Ctx &ctx, ArrayRef<FileFlags> files) {
106 bool isPic = files[0].flags & (EF_MIPS_PIC | EF_MIPS_CPIC);
107 for (const FileFlags &f : files.slice(1)) {
111 << files[0].file;
114 << files[0].file;
118 uint32_t ret = files[0].flags & (EF_MIPS_PIC | EF_MIPS_CPIC);
119 for (const FileFlags &f : files.slice(1))
268 // can be represented as a forest. If all input files have ISAs which
270 // these input files are compatible. In that case we need to return "highest"
271 // ISA. If there are incompatible input files, we show an error.
272 // For example, mips1 is a "parent" of mips2 and such files are compatible.
276 static uint32_t getArchFlags(Ctx &ctx, ArrayRef<FileFlags> files) {
277 uint32_t ret = files[0].flags & (EF_MIPS_ARCH | EF_MIPS_MACH);
279 for (const FileFlags &f : files.slice(1)) {
286 Err(ctx) << "incompatible target ISA:\n>>> " << files[0].file << ": "
301 // If we don't have any input files, we'll have to rely on the information