forked from OSchip/llvm-project
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:
parent
50807c81ea
commit
82dc32e2d4
|
@ -84,7 +84,8 @@ TEST(DWARFLocationTable, getLocations) {
|
||||||
"debug_loclists",
|
"debug_loclists",
|
||||||
MemoryBuffer::getMemBuffer(toStringRef(Loclists), "debug_loclists",
|
MemoryBuffer::getMemBuffer(toStringRef(Loclists), "debug_loclists",
|
||||||
/*RequiresNullTerminator=*/false));
|
/*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);
|
DWARFCompileUnit *CU = Ctx->getCompileUnitForOffset(0);
|
||||||
ASSERT_NE(nullptr, CU);
|
ASSERT_NE(nullptr, CU);
|
||||||
DWARFDie Die = CU->getUnitDIE();
|
DWARFDie Die = CU->getUnitDIE();
|
||||||
|
|
Loading…
Reference in New Issue