summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-12-07 21:26:32 +0000
committerChris Bieneman <beanz@apple.com>2016-12-07 21:26:32 +0000
commit79e60eb94880f5beac5c69fb2e42393fec6c279b (patch)
treeafe760a9a3b99db858b9b27453896ae45c4381c4 /llvm/tools
parent50db7f416c5442a4b033628b7ef73377f621f7ec (diff)
downloadbcm5719-llvm-79e60eb94880f5beac5c69fb2e42393fec6c279b.tar.gz
bcm5719-llvm-79e60eb94880f5beac5c69fb2e42393fec6c279b.zip
[ObjectYAML] Pull DWARF support into DWARFYAML namespace
Since DWARF formatting is agnostic to the object file it is stored in, it doesn't make sense for this to be in the MachOYAML implementation. Pulling it into its own namespace means we could modify the ELF and COFF YAML tools to emit DWARF as well. In a follow-up patch I will better abstract this in obj2yaml and yaml2obj so that the DWARF bits in the tools can be re-used too. llvm-svn: 288984
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/obj2yaml/macho2yaml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/obj2yaml/macho2yaml.cpp b/llvm/tools/obj2yaml/macho2yaml.cpp
index 16f25fc4668..cc82bbb717a 100644
--- a/llvm/tools/obj2yaml/macho2yaml.cpp
+++ b/llvm/tools/obj2yaml/macho2yaml.cpp
@@ -488,13 +488,13 @@ void MachODumper::dumpDebugAbbrev(DWARFContextInMemory &DCtx,
if(AbbrevSetPtr) {
for(auto AbbrvDeclSet : *AbbrevSetPtr) {
for(auto AbbrvDecl : AbbrvDeclSet.second) {
- MachOYAML::DWARFAbbrev Abbrv;
+ DWARFYAML::DWARFAbbrev Abbrv;
Abbrv.Code = AbbrvDecl.getCode();
Abbrv.Tag = AbbrvDecl.getTag();
Abbrv.Children = AbbrvDecl.hasChildren() ? dwarf::DW_CHILDREN_yes
: dwarf::DW_CHILDREN_no;
for(auto Attribute : AbbrvDecl.attributes()) {
- MachOYAML::DWARFAttributeAbbrev AttAbrv;
+ DWARFYAML::DWARFAttributeAbbrev AttAbrv;
AttAbrv.Attribute = Attribute.Attr;
AttAbrv.Form = Attribute.Form;
Abbrv.Attributes.push_back(AttAbrv);
OpenPOWER on IntegriCloud