mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
These can be void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
daf0f44e31
commit
d0ec6ddc14
@ -233,7 +233,7 @@ const char *nameLookup(const pod_pair<T, const char *> (&Arr)[N],
|
||||
return NotFound;
|
||||
}
|
||||
|
||||
static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header,
|
||||
static void yamlCOFFHeader(const object::coff_file_header *Header,
|
||||
raw_ostream &Out) {
|
||||
COFF::header H;
|
||||
H.Machine = Header->Machine;
|
||||
@ -243,13 +243,12 @@ static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header,
|
||||
Out << " Machine: ";
|
||||
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,
|
||||
std::size_t NumSections,
|
||||
raw_ostream &Out) {
|
||||
static void yamlCOFFSections(object::COFFObjectFile &Obj,
|
||||
std::size_t NumSections, raw_ostream &Out) {
|
||||
error_code ec;
|
||||
Out << "sections:\n";
|
||||
for (object::section_iterator iter = Obj.begin_sections();
|
||||
@ -290,11 +289,9 @@ static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj,
|
||||
}
|
||||
|
||||
}
|
||||
return Out;
|
||||
}
|
||||
|
||||
static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj,
|
||||
std::size_t NumSymbols,
|
||||
static void yamlCOFFSymbols(object::COFFObjectFile &Obj, std::size_t NumSymbols,
|
||||
raw_ostream &Out) {
|
||||
error_code ec;
|
||||
Out << "symbols:\n";
|
||||
@ -339,8 +336,6 @@ static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj,
|
||||
|
||||
Out << '\n';
|
||||
}
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user