diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 05:58:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-27 05:58:44 +0000 |
commit | 75373ac0c3cd299cfb45514d5bc0bc0761233fdd (patch) | |
tree | 31912468add3e0d4af96767a4053b8f1d67f78c3 /tools/macho-dump/macho-dump.cpp | |
parent | fbd25b7d1d030ca0cbea28c690b636c35299826e (diff) | |
download | llvm-75373ac0c3cd299cfb45514d5bc0bc0761233fdd.tar.gz llvm-75373ac0c3cd299cfb45514d5bc0bc0761233fdd.tar.bz2 llvm-75373ac0c3cd299cfb45514d5bc0bc0761233fdd.tar.xz |
macho-dump: Stub out C++ macho-dump tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/macho-dump/macho-dump.cpp')
-rw-r--r-- | tools/macho-dump/macho-dump.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/macho-dump/macho-dump.cpp b/tools/macho-dump/macho-dump.cpp new file mode 100644 index 0000000000..7825b11243 --- /dev/null +++ b/tools/macho-dump/macho-dump.cpp @@ -0,0 +1,30 @@ +//===-- macho-dump.cpp - Mach Object Dumping Tool -------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This is a testing tool for use with the MC/Mach-O LLVM components. +// +//===----------------------------------------------------------------------===// + +#include "llvm/Support/CommandLine.h" +#include "llvm/Support/ManagedStatic.h" +#include "llvm/Support/raw_ostream.h" +using namespace llvm; + +static cl::opt<std::string> +InputFile(cl::Positional, cl::desc("<input file>"), cl::init("-")); + +int main(int argc, char **argv) { + const char *ProgramName = argv[0]; + llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. + + cl::ParseCommandLineOptions(argc, argv, "llvm Mach-O dumping tool\n"); + + errs() << ProgramName << ": " << "not yet implemented!" << "\n"; + return 1; +} |