Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | debug_info: | ||||
Values: | Values: | ||||
- Value: 12 | - Value: 12 | ||||
- Value: 0x0000000000000001 | - Value: 0x0000000000000001 | ||||
BlockData: [ 0x47 ] | BlockData: [ 0x47 ] | ||||
- Value: 20 | - Value: 20 | ||||
- Value: 25 | - Value: 25 | ||||
)"; | )"; | ||||
Expected<StringMap<std::unique_ptr<MemoryBuffer>>> Sections = | Expected<StringMap<std::unique_ptr<MemoryBuffer>>> Sections = | ||||
DWARFYAML::emitDebugSections(StringRef(yamldata), /*ApplyFixups=*/true, | DWARFYAML::emitDebugSections(StringRef(yamldata), | ||||
/*IsLittleEndian=*/true); | /*IsLittleEndian=*/true); | ||||
ASSERT_THAT_EXPECTED(Sections, Succeeded()); | ASSERT_THAT_EXPECTED(Sections, Succeeded()); | ||||
std::vector<uint8_t> Loclists{ | std::vector<uint8_t> Loclists{ | ||||
// Header | // Header | ||||
0, 0, 0, 0, // Length | 0, 0, 0, 0, // Length | ||||
5, 0, // Version | 5, 0, // Version | ||||
4, // Address size | 4, // Address size | ||||
0, // Segment selector size | 0, // Segment selector size | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |