diff options
| author | Chris Bieneman <beanz@apple.com> | 2017-01-10 06:22:49 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2017-01-10 06:22:49 +0000 |
| commit | 1b7200d2cf73ea5a1f9c6c50fea9ab6374a11582 (patch) | |
| tree | 036d3e75ea44c6d461cbe0519f06cafd22064d6d /llvm/tools/yaml2obj/yaml2macho.cpp | |
| parent | 6e8f1dc8724fd580172acd9e14840ae5ed78a8b7 (diff) | |
| download | bcm5719-llvm-1b7200d2cf73ea5a1f9c6c50fea9ab6374a11582.tar.gz bcm5719-llvm-1b7200d2cf73ea5a1f9c6c50fea9ab6374a11582.zip | |
[ObjectYAML] Support for DWARF line tables
One more try... relanding r291541 with a fix to properly gate MaxOpsPerInst on DWARF version.
Description from r291541:
This patch re-lands r291470, which failed on Linux bots. The issue (I believe) was undefined behavior because the size of llvm::dwarf::LineNumberOps was not explcitly specified or consistently respected. The updated patch adds an explcit underlying type to the enum and preserves the size more correctly.
Original description:
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: 291546
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 |

