reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/unittests/Utility/ArchSpecTest.cpp
   61   EXPECT_TRUE(ParseMachCPUDashSubtypeTriple("12-15-vendor-os", AS));
   62   EXPECT_EQ(12u, AS.GetMachOCPUType());
   63   EXPECT_EQ(15u, AS.GetMachOCPUSubType());
   64   EXPECT_EQ("vendor", AS.GetTriple().getVendorName());
   65   EXPECT_EQ("os", AS.GetTriple().getOSName());
   67   AS = ArchSpec();
   68   EXPECT_TRUE(ParseMachCPUDashSubtypeTriple("12-10-vendor-os-name", AS));
   69   EXPECT_EQ(12u, AS.GetMachOCPUType());
   70   EXPECT_EQ(10u, AS.GetMachOCPUSubType());
   71   EXPECT_EQ("vendor", AS.GetTriple().getVendorName());
   72   EXPECT_EQ("os", AS.GetTriple().getOSName());
   74   AS = ArchSpec();
   75   EXPECT_TRUE(ParseMachCPUDashSubtypeTriple("12-15-vendor.os-name", AS));
   76   EXPECT_EQ(12u, AS.GetMachOCPUType());
   77   EXPECT_EQ(15u, AS.GetMachOCPUSubType());
   78   EXPECT_EQ("vendor.os", AS.GetTriple().getVendorName());
   79   EXPECT_EQ("name", AS.GetTriple().getOSName());
   83   AS = ArchSpec();
   84   EXPECT_TRUE(ParseMachCPUDashSubtypeTriple("12-10-vendor", AS));
   85   EXPECT_EQ(12u, AS.GetMachOCPUType());
   86   EXPECT_EQ(10u, AS.GetMachOCPUSubType());
   87   EXPECT_EQ("apple", AS.GetTriple().getVendorName());
   88   EXPECT_EQ("", AS.GetTriple().getOSName());
   90   AS = ArchSpec();
   91   EXPECT_FALSE(ParseMachCPUDashSubtypeTriple("12.10.10", AS));
   93   AS = ArchSpec();
   94   EXPECT_FALSE(ParseMachCPUDashSubtypeTriple("12-10.10", AS));