[LLVMbugs] [Bug 12731] New: llvm-objdump -arch does not accept x86 and x86-64 as valid arch names
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 3 08:23:21 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12731
Bug #: 12731
Summary: llvm-objdump -arch does not accept x86 and x86-64 as
valid arch names
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: meadori at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
While investigating PR12729 I noticed that 'x86' and 'x86-64' are *not*
accepted as valid architecture names:
$ llvm-objdump -arch=x86 -disassemble test.o
test.o: file format Mach-O 64-bit x86-64
Disassembly of section __TEXT,__text:error: no assembly info for target
x86-unknown-unknown
$ llvm-objdump -arch=x86-64 -disassemble test.o
test.o: file format Mach-O 64-bit x86-64
Disassembly of section __TEXT,__text:error: no assembly info for target
x86-64-unknown-unknown
This is due to the logic in 'llvm-objdump.cpp:GetTarget'. I think the logic
should be change to match how 'llc' and 'llvm-mc' do it (by looking up the
architecture type from the LLVM name).
--
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