diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-03 19:42:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-03 19:42:57 +0000 |
commit | 93f33235e532fc3fec7bbb61d1012d42681d9075 (patch) | |
tree | f878dddc804f0387b2f6cace6d702ba35ad2c3ba /llvm/tools/obj2yaml/obj2yaml.cpp | |
parent | a61f1e9708e5d3a6fa5c6e4a2a26aaaaabeb1628 (diff) | |
download | bcm5719-llvm-93f33235e532fc3fec7bbb61d1012d42681d9075.tar.gz bcm5719-llvm-93f33235e532fc3fec7bbb61d1012d42681d9075.zip |
Remove dead code.
Thanks to Sean Silva for noticing it!
llvm-svn: 183148
Diffstat (limited to 'llvm/tools/obj2yaml/obj2yaml.cpp')
-rw-r--r-- | llvm/tools/obj2yaml/obj2yaml.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/tools/obj2yaml/obj2yaml.cpp b/llvm/tools/obj2yaml/obj2yaml.cpp index 821c9ac7d3a..8d128b35394 100644 --- a/llvm/tools/obj2yaml/obj2yaml.cpp +++ b/llvm/tools/obj2yaml/obj2yaml.cpp @@ -18,38 +18,6 @@ using namespace llvm; -namespace objyaml { // generic yaml-writing specific routines - -unsigned char printable(unsigned char Ch) { - return Ch >= ' ' && Ch <= '~' ? Ch : '.'; -} - -raw_ostream &writeHexStream(raw_ostream &Out, const ArrayRef<uint8_t> arr) { - const char *hex = "0123456789ABCDEF"; - Out << " !hex \""; - - typedef ArrayRef<uint8_t>::const_iterator iter_t; - const iter_t end = arr.end(); - for (iter_t iter = arr.begin(); iter != end; ++iter) - Out << hex[(*iter >> 4) & 0x0F] << hex[(*iter & 0x0F)]; - - Out << "\" # |"; - for (iter_t iter = arr.begin(); iter != end; ++iter) - Out << printable(*iter); - Out << "|\n"; - - return Out; -} - -raw_ostream &writeHexNumber(raw_ostream &Out, unsigned long long N) { - if (N >= 10) - Out << "0x"; - Out.write_hex(N); - return Out; -} - -} // end namespace yaml - namespace { enum ObjectFileType { coff |