mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
PR12729: Change 'llvm-objdump' to display the available targets.
Patch by Meador Inge. llvm-svn: 156128
This commit is contained in:
parent
43574b75b2
commit
e06a862dec
@ -632,6 +632,9 @@ int main(int argc, char **argv) {
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user