diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 02:32:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 02:32:26 +0000 |
commit | 5fd5fe0f7bfac0f7973475fcf7a5f8061d983538 (patch) | |
tree | 8596242c630f6f9a293d27abcda4f0c7746b806e /tools | |
parent | 6afb65c2b709cfa078d0f6f6c5feceb2abab8036 (diff) | |
download | external_llvm-5fd5fe0f7bfac0f7973475fcf7a5f8061d983538.zip external_llvm-5fd5fe0f7bfac0f7973475fcf7a5f8061d983538.tar.gz external_llvm-5fd5fe0f7bfac0f7973475fcf7a5f8061d983538.tar.bz2 |
Move BinaryRef to a new include/llvm/Object/YAML.h file.
It will be used for ELF dumping too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/obj2yaml/coff2yaml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp index d1c4d01..909b269 100644 --- a/tools/obj2yaml/coff2yaml.cpp +++ b/tools/obj2yaml/coff2yaml.cpp @@ -64,7 +64,7 @@ void COFFDumper::dumpSections(unsigned NumSections) { ArrayRef<uint8_t> sectionData; Obj.getSectionContents(Sect, sectionData); - Sec.SectionData = COFFYAML::BinaryRef(sectionData); + Sec.SectionData = object::yaml::BinaryRef(sectionData); std::vector<COFF::relocation> Relocations; for (object::relocation_iterator rIter = iter->begin_relocations(); @@ -96,7 +96,7 @@ void COFFDumper::dumpSymbols(unsigned NumSymbols) { Sym.Header.Value = Symbol->Value; Sym.Header.SectionNumber = Symbol->SectionNumber; Sym.Header.NumberOfAuxSymbols = Symbol->NumberOfAuxSymbols; - Sym.AuxiliaryData = COFFYAML::BinaryRef(Obj.getSymbolAuxData(Symbol)); + Sym.AuxiliaryData = object::yaml::BinaryRef(Obj.getSymbolAuxData(Symbol)); Symbols.push_back(Sym); } } |