These can be void.

llvm-svn: 179923
This commit is contained in:
Rafael Espindola 2013-04-20 03:33:09 +00:00
parent 9225772c6e
commit 4ef5ed769e
1 changed files with 7 additions and 12 deletions

View File

@ -233,8 +233,8 @@ const char *nameLookup(const pod_pair<T, const char *> (&Arr)[N],
return NotFound; return NotFound;
} }
static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header, static void yamlCOFFHeader(const object::coff_file_header *Header,
raw_ostream &Out) { raw_ostream &Out) {
COFF::header H; COFF::header H;
H.Machine = Header->Machine; H.Machine = Header->Machine;
H.Characteristics = Header->Characteristics; H.Characteristics = Header->Characteristics;
@ -243,13 +243,12 @@ static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header,
Out << " Machine: "; Out << " Machine: ";
Out << nameLookup(MachineTypePairs, Header->Machine, "# Unknown_MachineTypes") Out << nameLookup(MachineTypePairs, Header->Machine, "# Unknown_MachineTypes")
<< " # ("; << " # (";
return objyaml::writeHexNumber(Out, Header->Machine) << ")\n\n"; objyaml::writeHexNumber(Out, Header->Machine) << ")\n\n";
} }
static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj, static void yamlCOFFSections(object::COFFObjectFile &Obj,
std::size_t NumSections, std::size_t NumSections, raw_ostream &Out) {
raw_ostream &Out) {
error_code ec; error_code ec;
Out << "sections:\n"; Out << "sections:\n";
for (object::section_iterator iter = Obj.begin_sections(); for (object::section_iterator iter = Obj.begin_sections();
@ -290,12 +289,10 @@ static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj,
} }
} }
return Out;
} }
static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj, static void yamlCOFFSymbols(object::COFFObjectFile &Obj, std::size_t NumSymbols,
std::size_t NumSymbols, raw_ostream &Out) {
raw_ostream &Out) {
error_code ec; error_code ec;
Out << "symbols:\n"; Out << "symbols:\n";
for (object::symbol_iterator iter = Obj.begin_symbols(); for (object::symbol_iterator iter = Obj.begin_symbols();
@ -339,8 +336,6 @@ static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj,
Out << '\n'; Out << '\n';
} }
return Out;
} }