aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mc/Disassembler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-09-27Push twines deeper into SourceMgr's error handling methods.Benjamin Kramer1-0/+1
llvm-svn: 114847
2010-08-20Use the new tool_output_file in several tools. This fixes a varietyDan Gohman1-33/+36
of problems with output files being left behind or output streams being left unclosed. Fix llvm-mc to respect the -o option in all modes, rather than hardcoding outs() in some cases. llvm-svn: 111603
2010-07-20start straightening out libedis's dependencies and make it fitChris Lattner1-82/+57
better in the llvm world. Among other things, this changes: 1. The guts of libedis are now moved into lib/MC/MCDisassembler 2. llvm-mc now depends on lib/MC/MCDisassembler, not tools/edis, so edis and mc don't have to be built in series. 3. lib/MC/MCDisassembler no longer depends on the C api, the C API depends on it. 4. Various code cleanup changes. There is still a lot to be done to make edis fit with the llvm design, but this is an incremental step in the right direction. llvm-svn: 108869
2010-05-11Extended the edis "IsBranch" property to callSean Callanan1-0/+5
instructions as well. Added support for checking this to the llvm-mc tester as well. llvm-svn: 103454
2010-05-05Fixed a sign-extension bug in the X86 disassemblerSean Callanan1-0/+2
that was causing PC-relative branch targets to be evaluated incorrectly. Also added support for checking operand values to the llvm-mc tester. llvm-svn: 103128
2010-04-13Make the disassembler respect the assembler dialect when printing instructions,Chris Lattner1-1/+3
patch by Marius Wachtler! llvm-svn: 101160
2010-04-12Second try at integrating the edis tester. ThisSean Callanan1-37/+232
time I use the LIBS variable, which is not subject to a %.a -> -l% transformation, to link llvm-mc against libEnhancedDisassembly. llvm-mc -edis works the same as llvm-mc -disassemble, but outputs tokens and operands. llvm-svn: 101058
2010-04-09revert r100842 which broke several of the build bots.Chris Lattner1-232/+37
llvm-svn: 100848
2010-04-09Added a tester for the enhanced disassembler,Sean Callanan1-37/+232
integrated into the llvm-mc testing tool. llvm-svn: 100842
2010-04-04fix an ugly wart in the MCInstPrinter api where theChris Lattner1-4/+4
raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. llvm-svn: 100307
2010-03-20llvm-mc: Fix MCInstPrinter memory leaks.Daniel Dunbar1-9/+8
llvm-svn: 99101
2010-02-03Fixed the disassembler so it accepts multipleSean Callanan1-28/+20
instructions on a single line. Also made it a bit more forgiving when it reports errors. llvm-svn: 95197
2009-12-22rename HexDisassembler -> Disassembler, it works on any inputChris Lattner1-0/+165
integer encoding (0123, 0b10101, 42, etc). llvm-svn: 91934