Big-endian fix to DWARFDieTest (089c0f58)

Hardcode the DWARFContext to little-endian. I don't have a BE machine to
test this on, but I believe this should address the ppc64be failure.
This commit is contained in:
Pavel Labath 2019-11-20 14:35:41 +01:00
parent 50807c81ea
commit 82dc32e2d4
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ TEST(DWARFLocationTable, getLocations) {
"debug_loclists",
MemoryBuffer::getMemBuffer(toStringRef(Loclists), "debug_loclists",
/*RequiresNullTerminator=*/false));
std::unique_ptr<DWARFContext> Ctx = DWARFContext::create(*Sections, 8);
std::unique_ptr<DWARFContext> Ctx =
DWARFContext::create(*Sections, 4, /*isLittleEndian=*/true);
DWARFCompileUnit *CU = Ctx->getCompileUnitForOffset(0);
ASSERT_NE(nullptr, CU);
DWARFDie Die = CU->getUnitDIE();