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