[llvm-commits] [llvm] r156128 - /llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Pete Cooper
peter_cooper at apple.com
Thu May 3 16:20:10 PDT 2012
Author: pete
Date: Thu May 3 18:20:10 2012
New Revision: 156128
URL: http://llvm.org/viewvc/llvm-project?rev=156128&view=rev
Log:
PR12729: Change 'llvm-objdump' to display the available targets.
Patch by Meador Inge.
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=156128&r1=156127&r2=156128&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Thu May 3 18:20:10 2012
@@ -632,6 +632,9 @@
llvm::InitializeAllAsmParsers();
llvm::InitializeAllDisassemblers();
+ // Register the target printer for --version.
+ cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
+
cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n");
TripleName = Triple::normalize(TripleName);
More information about the llvm-commits
mailing list