diff options
| author | Chris Bieneman <beanz@apple.com> | 2017-01-09 20:01:37 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2017-01-09 20:01:37 +0000 |
| commit | 0396f9918438aaef9902b6ec9812bfa0f3859eea (patch) | |
| tree | f6a74874b8acbb7f3816d96aeab3e4adf62e3687 /llvm/tools/yaml2obj/yaml2macho.cpp | |
| parent | eaa143c98c4b2eb69fc14e56963e3ca91cf8a4da (diff) | |
| download | bcm5719-llvm-0396f9918438aaef9902b6ec9812bfa0f3859eea.tar.gz bcm5719-llvm-0396f9918438aaef9902b6ec9812bfa0f3859eea.zip | |
[ObjectYAML] Support for DWARF line tables
This patch adds support for the DWARF debug_lines section. The line table state machine opcodes are preserved, so this can be used to test the state machine evaluation directly.
llvm-svn: 291470
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2macho.cpp')
| -rw-r--r-- | llvm/tools/yaml2obj/yaml2macho.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/yaml2obj/yaml2macho.cpp b/llvm/tools/yaml2obj/yaml2macho.cpp index a41ec55d73b..cbc4d7ff50d 100644 --- a/llvm/tools/yaml2obj/yaml2macho.cpp +++ b/llvm/tools/yaml2obj/yaml2macho.cpp @@ -280,6 +280,8 @@ Error MachOWriter::writeSectionData(raw_ostream &OS) { yaml2pubsection(OS, Obj.DWARF.PubTypes, Obj.IsLittleEndian); } else if (0 == strncmp(&Sec.sectname[0], "__debug_info", 16)) { yaml2debug_info(OS, Obj.DWARF); + } else if (0 == strncmp(&Sec.sectname[0], "__debug_line", 16)) { + yaml2debug_line(OS, Obj.DWARF); } } else { // Fills section data with 0xDEADBEEF |

