diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-20 03:16:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-20 03:16:59 +0000 |
commit | daf0f44e3161dd065768412544d42de3227c9c3a (patch) | |
tree | 873fe1c6ad5efaa69bdb8791ea43560ef4504e96 /tools/obj2yaml | |
parent | 9e39d0bc2092f97c531591737af8abda48211169 (diff) | |
download | external_llvm-daf0f44e3161dd065768412544d42de3227c9c3a.zip external_llvm-daf0f44e3161dd065768412544d42de3227c9c3a.tar.gz external_llvm-daf0f44e3161dd065768412544d42de3227c9c3a.tar.bz2 |
Rename obj2yaml local namespace to avoid conflicts with llvm::yaml.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/obj2yaml')
-rw-r--r-- | tools/obj2yaml/coff2yaml.cpp | 10 | ||||
-rw-r--r-- | tools/obj2yaml/obj2yaml.cpp | 2 | ||||
-rw-r--r-- | tools/obj2yaml/obj2yaml.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp index 349d0c1..203754c 100644 --- a/tools/obj2yaml/coff2yaml.cpp +++ b/tools/obj2yaml/coff2yaml.cpp @@ -243,7 +243,7 @@ static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header, Out << " Machine: "; Out << nameLookup(MachineTypePairs, Header->Machine, "# Unknown_MachineTypes") << " # ("; - return yaml::writeHexNumber(Out, Header->Machine) << ")\n\n"; + return objyaml::writeHexNumber(Out, Header->Machine) << ")\n\n"; } @@ -267,12 +267,12 @@ static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj, << ", "; writeBitMask(Out, SectionCharacteristicsPairs2, sect->Characteristics); Out << "] # "; - yaml::writeHexNumber(Out, sect->Characteristics) << '\n'; + objyaml::writeHexNumber(Out, sect->Characteristics) << '\n'; ArrayRef<uint8_t> sectionData; Obj.getSectionContents(sect, sectionData); Out << " SectionData: "; - yaml::writeHexStream(Out, sectionData) << '\n'; + objyaml::writeHexStream(Out, sectionData) << '\n'; if (iter->begin_relocations() != iter->end_relocations()) Out << " Relocations:\n"; for (object::relocation_iterator rIter = iter->begin_relocations(); @@ -281,7 +281,7 @@ static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj, Out << " - !Relocation\n"; Out << " VirtualAddress: " ; - yaml::writeHexNumber(Out, reloc->VirtualAddress) << '\n'; + objyaml::writeHexNumber(Out, reloc->VirtualAddress) << '\n'; Out << " SymbolTableIndex: " << reloc->SymbolTableIndex << '\n'; Out << " Type: " << nameLookup(RelocationTypeX86Pairs, reloc->Type) << '\n'; @@ -334,7 +334,7 @@ static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj, Out << " NumberOfAuxSymbols: " << (int) symbol->NumberOfAuxSymbols << '\n'; Out << " AuxillaryData: "; - yaml::writeHexStream(Out, aux); + objyaml::writeHexStream(Out, aux); } Out << '\n'; diff --git a/tools/obj2yaml/obj2yaml.cpp b/tools/obj2yaml/obj2yaml.cpp index f089e0a..821c9ac 100644 --- a/tools/obj2yaml/obj2yaml.cpp +++ b/tools/obj2yaml/obj2yaml.cpp @@ -18,7 +18,7 @@ using namespace llvm; -namespace yaml { // generic yaml-writing specific routines +namespace objyaml { // generic yaml-writing specific routines unsigned char printable(unsigned char Ch) { return Ch >= ' ' && Ch <= '~' ? Ch : '.'; diff --git a/tools/obj2yaml/obj2yaml.h b/tools/obj2yaml/obj2yaml.h index b4a0126..7d52a2d 100644 --- a/tools/obj2yaml/obj2yaml.h +++ b/tools/obj2yaml/obj2yaml.h @@ -18,7 +18,7 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" -namespace yaml { // routines for writing YAML +namespace objyaml { // routines for writing YAML // Write a hex stream: // <Prefix> !hex: "<hex digits>" #|<ASCII chars>\n llvm::raw_ostream &writeHexStream |