Home
last modified time | relevance | path

Searched refs:toSigned (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFFormValue.h214 inline Optional<int64_t> toSigned(const Optional<DWARFFormValue> &V) { in toSigned() function
226 inline int64_t toSigned(const Optional<DWARFFormValue> &V, int64_t Default) { in toSigned() function
227 return toSigned(V).getValueOr(Default); in toSigned()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/DebugInfo/DWARF/
DDWARFDebugInfoTest.cpp359 EXPECT_EQ(SData, toSigned(DieDG.find(Attr_DW_FORM_sdata), 0)); in TestAllForms()
361 EXPECT_EQ(ICSData, toSigned(DieDG.find(Attr_DW_FORM_implicit_const), 0)); in TestAllForms()
1461 EXPECT_FALSE(toSigned(FormValOpt).hasValue()); in TEST()
1470 EXPECT_EQ(InvalidS64, toSigned(FormValOpt, InvalidS64)); in TEST()
1481 EXPECT_FALSE(toSigned(FormValOpt).hasValue()); in TEST()
1490 EXPECT_EQ(InvalidS64, toSigned(FormValOpt, InvalidU64)); in TEST()
1501 EXPECT_TRUE(toSigned(FormValOpt).hasValue()); in TEST()
1510 EXPECT_EQ((int64_t)UData8, toSigned(FormValOpt, InvalidU64)); in TEST()
1521 EXPECT_FALSE(toSigned(FormValOpt).hasValue()); in TEST()
1530 EXPECT_EQ(InvalidS64, toSigned(FormValOpt, InvalidU64)); in TEST()
[all …]