summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2macho.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-12-19 22:22:12 +0000
committerChris Bieneman <beanz@apple.com>2016-12-19 22:22:12 +0000
commitd9430944f4bb423a15785a0cea2bc6a76c50ecdb (patch)
tree4cd067bf8dfee0c956152c0f0f7202ada35a4fdb /llvm/tools/yaml2obj/yaml2macho.cpp
parent9b415be1bf1b86cce12689fbc684306a24956824 (diff)
downloadbcm5719-llvm-d9430944f4bb423a15785a0cea2bc6a76c50ecdb.tar.gz
bcm5719-llvm-d9430944f4bb423a15785a0cea2bc6a76c50ecdb.zip
[ObjectYAML] Support for DWARF Pub Sections
This patch adds support for YAML<->DWARF round tripping for pub* section data. The patch supports both GNU and non-GNU style entries. llvm-svn: 290139
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2macho.cpp')
-rw-r--r--llvm/tools/yaml2obj/yaml2macho.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/yaml2obj/yaml2macho.cpp b/llvm/tools/yaml2obj/yaml2macho.cpp
index 9d70f5888ac..3fdf3cf43bd 100644
--- a/llvm/tools/yaml2obj/yaml2macho.cpp
+++ b/llvm/tools/yaml2obj/yaml2macho.cpp
@@ -394,6 +394,10 @@ Error MachOWriter::writeDWARFData(raw_ostream &OS,
yaml2debug_abbrev(OS, Obj.DWARF);
} else if (0 == strncmp(&Section.sectname[0], "__debug_aranges", 16)) {
yaml2debug_aranges(OS, Obj.DWARF);
+ } else if (0 == strncmp(&Section.sectname[0], "__debug_pubnames", 16)) {
+ yaml2pubsection(OS, Obj.DWARF.PubNames);
+ } else if (0 == strncmp(&Section.sectname[0], "__debug_pubtypes", 16)) {
+ yaml2pubsection(OS, Obj.DWARF.PubTypes);
}
}
return Error::success();
OpenPOWER on IntegriCloud