[LLVMbugs] [Bug 12729] New: llvm-objdump -version does not print available targets
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 2 12:56:01 PDT 2012
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: unassignedbugs at nondot.org
ReportedBy: jcarter at mips.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list