Lines Matching defs:Locs

383 void expectDumpResult(const dwarf::RegisterLocations &Locs,
387 OS << Locs;
394 dwarf::RegisterLocations Locs;
395 expectDumpResult(Locs, "");
396 EXPECT_FALSE(Locs.hasLocations());
399 Locs.setRegisterLocation(12, dwarf::UnwindLocation::createUnspecified());
400 EXPECT_TRUE(Locs.hasLocations());
401 expectDumpResult(Locs, "reg12=unspecified");
405 Locs.setRegisterLocation(12, dwarf::UnwindLocation::createSame());
406 EXPECT_TRUE(Locs.hasLocations());
407 expectDumpResult(Locs, "reg12=same");
411 Locs.removeRegisterLocation(12);
412 EXPECT_FALSE(Locs.hasLocations());
413 expectDumpResult(Locs, "");
419 Locs.setRegisterLocation(12, Reg12Loc);
420 Locs.setRegisterLocation(13, Reg13Loc);
421 Locs.setRegisterLocation(14, Reg14Loc);
422 EXPECT_TRUE(Locs.hasLocations());
423 expectDumpResult(Locs, "reg12=[CFA+4], reg13=[CFA+8], reg14=same");
427 OptionalLoc = Locs.getRegisterLocation(0);
430 OptionalLoc = Locs.getRegisterLocation(12);
434 OptionalLoc = Locs.getRegisterLocation(13);
438 OptionalLoc = Locs.getRegisterLocation(14);
443 Locs.removeRegisterLocation(13);
444 EXPECT_FALSE(Locs.getRegisterLocation(13).has_value());
445 EXPECT_TRUE(Locs.hasLocations());
446 expectDumpResult(Locs, "reg12=[CFA+4], reg14=same");
447 Locs.removeRegisterLocation(14);
448 EXPECT_FALSE(Locs.getRegisterLocation(14).has_value());
449 EXPECT_TRUE(Locs.hasLocations());
450 expectDumpResult(Locs, "reg12=[CFA+4]");
451 Locs.removeRegisterLocation(12);
452 EXPECT_FALSE(Locs.getRegisterLocation(12).has_value());
453 EXPECT_FALSE(Locs.hasLocations());
454 expectDumpResult(Locs, "");