summaryrefslogtreecommitdiff
path: root/tools/macho-dump
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-03 23:51:47 +0000
committerEric Christopher <echristo@apple.com>2011-04-03 23:51:47 +0000
commit592cf78f842999d3b6c958822927790bc3f45c62 (patch)
tree6640d22b8e90ad74a37fdc048de08473da3933b1 /tools/macho-dump
parent33feb706901bc674d30e9d82b6baff7e9c634366 (diff)
downloadllvm-592cf78f842999d3b6c958822927790bc3f45c62.tar.gz
llvm-592cf78f842999d3b6c958822927790bc3f45c62.tar.bz2
llvm-592cf78f842999d3b6c958822927790bc3f45c62.tar.xz
Start migrating mach-o dumping facilities to the object file out of a
separate executable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/macho-dump')
-rw-r--r--tools/macho-dump/macho-dump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/macho-dump/macho-dump.cpp b/tools/macho-dump/macho-dump.cpp
index c4c558d9ac..a69368b3d7 100644
--- a/tools/macho-dump/macho-dump.cpp
+++ b/tools/macho-dump/macho-dump.cpp
@@ -376,8 +376,8 @@ int main(int argc, char **argv) {
if (!InputObject)
return Error("unable to load object: '" + ErrorStr + "'");
- if (int Res = DumpHeader(*InputObject))
- return Res;
+ // Print the header
+ InputObject->printHeader(outs());
// Print the load commands.
int Res = 0;