diff options
author | Pavel Labath <pavel@labath.sk> | 2019-11-20 14:35:41 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-11-20 14:35:41 +0100 |
commit | 82dc32e2d456c75d08bc9ffe97def409ee5a03cd (patch) | |
tree | 875c6f1cfbf083f36702c0411d54d7987315d0d4 | |
parent | 50807c81eaeead17277ebf98ce1cc6272370d143 (diff) | |
download | bcm5719-llvm-82dc32e2d456c75d08bc9ffe97def409ee5a03cd.tar.gz bcm5719-llvm-82dc32e2d456c75d08bc9ffe97def409ee5a03cd.zip |
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.
-rw-r--r-- | llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp index 05e8e05b927..6296f872433 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp @@ -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(); |