http://llvm.org/bugs/show_bug.cgi?id=12729
Bug #: 12729
Summary: llvm-objdump -version does not print available targets
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-dis
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
I couldn't find a bugzilla component for llvm-objdump so I hooked this to the
closest thing.
If I type llvm-objdump -help it states among other things:
OPTIONS:
-arch=<string> - Target arch to disassemble for, see
-version for available targets
-triple=<string> - Target triple to disassemble for, see
-version for available targets
but when I try it I get:
% llvm-objdump -version
LLVM (http://llvm.org/):
LLVM version 3.2svn
DEBUG build with assertions.
Built Apr 30 2012 (13:51:53).
Default target: x86_64-unknown-linux-gnu
Host CPU: corei7
The default is stated, not all the available targets.
llvm/lib/Support/CommandLine.cpp:class VersionPrinter seems to be printing out
the default version. I am assuming that the routine for llvm-objdump will have
to be local instance of VersionPrinter or a pure virtual class for supported
triples for the specific tool.
-triple=mipsel-unknown-linux is supported, but I had to dig for it and from the
help message it wasn't supported.
Cheers
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs