reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
32 int inputFileCount() { return _ctx.getNodes().size(); } 35 Node &node = *_ctx.getNodes()[index]; 43 return mach_o::parse(args, _ctx); 52 EXPECT_FALSE(_ctx.allowRemainingUndefines()); 53 EXPECT_FALSE(_ctx.deadStrip()); 61 EXPECT_EQ("my.out", _ctx.outputPath()); 66 EXPECT_EQ(llvm::MachO::MH_DYLIB, _ctx.outputMachOType()); 71 EXPECT_EQ(llvm::MachO::MH_OBJECT, _ctx.outputMachOType()); 76 EXPECT_EQ(llvm::MachO::MH_BUNDLE, _ctx.outputMachOType()); 81 EXPECT_EQ(llvm::MachO::MH_PRELOAD, _ctx.outputMachOType()); 86 EXPECT_EQ(llvm::MachO::MH_EXECUTE, _ctx.outputMachOType()); 91 EXPECT_EQ("entryFunc", _ctx.entrySymbolName()); 96 EXPECT_TRUE(_ctx.deadStrip()); 101 EXPECT_FALSE(_ctx.globalsAreDeadStripRoots()); 106 EXPECT_FALSE(_ctx.globalsAreDeadStripRoots()); 111 EXPECT_FALSE(_ctx.globalsAreDeadStripRoots()); 117 EXPECT_TRUE(_ctx.globalsAreDeadStripRoots()); 123 EXPECT_TRUE(_ctx.globalsAreDeadStripRoots()); 129 EXPECT_FALSE(_ctx.globalsAreDeadStripRoots()); 134 EXPECT_EQ(MachOLinkingContext::arch_x86_64, _ctx.arch()); 135 EXPECT_EQ((uint32_t)llvm::MachO::CPU_TYPE_X86_64, _ctx.getCPUType()); 136 EXPECT_EQ(llvm::MachO::CPU_SUBTYPE_X86_64_ALL, _ctx.getCPUSubType()); 141 EXPECT_EQ(MachOLinkingContext::arch_x86, _ctx.arch()); 142 EXPECT_EQ((uint32_t)llvm::MachO::CPU_TYPE_I386, _ctx.getCPUType()); 143 EXPECT_EQ(llvm::MachO::CPU_SUBTYPE_X86_ALL, _ctx.getCPUSubType()); 148 EXPECT_EQ(MachOLinkingContext::arch_armv6, _ctx.arch()); 149 EXPECT_EQ((uint32_t)llvm::MachO::CPU_TYPE_ARM, _ctx.getCPUType()); 150 EXPECT_EQ(llvm::MachO::CPU_SUBTYPE_ARM_V6, _ctx.getCPUSubType()); 155 EXPECT_EQ(MachOLinkingContext::arch_armv7, _ctx.arch()); 156 EXPECT_EQ((uint32_t)llvm::MachO::CPU_TYPE_ARM, _ctx.getCPUType()); 157 EXPECT_EQ(llvm::MachO::CPU_SUBTYPE_ARM_V7, _ctx.getCPUSubType()); 162 EXPECT_EQ(MachOLinkingContext::arch_armv7s, _ctx.arch()); 163 EXPECT_EQ((uint32_t)llvm::MachO::CPU_TYPE_ARM, _ctx.getCPUType()); 164 EXPECT_EQ(llvm::MachO::CPU_SUBTYPE_ARM_V7S, _ctx.getCPUSubType()); 170 EXPECT_EQ(MachOLinkingContext::OS::macOSX, _ctx.os()); 171 EXPECT_TRUE(_ctx.minOS("10.7", "")); 172 EXPECT_FALSE(_ctx.minOS("10.8", "")); 178 EXPECT_EQ(MachOLinkingContext::OS::macOSX, _ctx.os()); 179 EXPECT_TRUE(_ctx.minOS("10.7", "")); 180 EXPECT_TRUE(_ctx.minOS("10.8", "")); 185 EXPECT_EQ(MachOLinkingContext::OS::iOS, _ctx.os()); 186 EXPECT_TRUE(_ctx.minOS("", "5.0")); 187 EXPECT_FALSE(_ctx.minOS("", "6.0")); 192 EXPECT_EQ(MachOLinkingContext::OS::iOS, _ctx.os()); 193 EXPECT_TRUE(_ctx.minOS("", "5.0")); 194 EXPECT_TRUE(_ctx.minOS("", "6.0")); 200 EXPECT_EQ(MachOLinkingContext::OS::iOS_simulator, _ctx.os()); 201 EXPECT_TRUE(_ctx.minOS("", "5.0")); 202 EXPECT_FALSE(_ctx.minOS("", "6.0")); 208 EXPECT_EQ(MachOLinkingContext::OS::iOS_simulator, _ctx.os()); 209 EXPECT_TRUE(_ctx.minOS("", "5.0")); 210 EXPECT_TRUE(_ctx.minOS("", "6.0")); 216 EXPECT_EQ(_ctx.compatibilityVersion(), 0x10203U); 232 EXPECT_EQ(_ctx.currentVersion(), 0x10203U); 248 EXPECT_EQ(_ctx.bundleLoader(), "/bin/ls"); 258 EXPECT_EQ(true, _ctx.deadStrippableDylib());