summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-20 03:33:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-20 03:33:09 +0000
commitd0ec6ddc1454a00dd9cf9db813433d2953f4c952 (patch)
tree9a4be31a38c7aa82931f1f3fcddb7883524cd667 /tools
parentdaf0f44e3161dd065768412544d42de3227c9c3a (diff)
downloadexternal_llvm-d0ec6ddc1454a00dd9cf9db813433d2953f4c952.zip
external_llvm-d0ec6ddc1454a00dd9cf9db813433d2953f4c952.tar.gz
external_llvm-d0ec6ddc1454a00dd9cf9db813433d2953f4c952.tar.bz2
These can be void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/obj2yaml/coff2yaml.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/tools/obj2yaml/coff2yaml.cpp b/tools/obj2yaml/coff2yaml.cpp
index 203754c..3098cb5 100644
--- a/tools/obj2yaml/coff2yaml.cpp
+++ b/tools/obj2yaml/coff2yaml.cpp
@@ -233,8 +233,8 @@ const char *nameLookup(const pod_pair<T, const char *> (&Arr)[N],
return NotFound;
}
-static raw_ostream &yamlCOFFHeader(const object::coff_file_header *Header,
- raw_ostream &Out) {
+static void yamlCOFFHeader(const object::coff_file_header *Header,
+ raw_ostream &Out) {
COFF::header H;
H.Machine = Header->Machine;
H.Characteristics = Header->Characteristics;
@@ -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,12 +289,10 @@ static raw_ostream &yamlCOFFSections(object::COFFObjectFile &Obj,
}
}
- return Out;
}
-static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj,
- std::size_t NumSymbols,
- raw_ostream &Out) {
+static void yamlCOFFSymbols(object::COFFObjectFile &Obj, std::size_t NumSymbols,
+ raw_ostream &Out) {
error_code ec;
Out << "symbols:\n";
for (object::symbol_iterator iter = Obj.begin_symbols();
@@ -339,8 +336,6 @@ static raw_ostream& yamlCOFFSymbols(object::COFFObjectFile &Obj,
Out << '\n';
}
-
- return Out;
}