Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | No relocation produces a SLEB or ULEB, make sure they are handled in MC. | Rafael Espindola | 2011-04-26 | 2 | -11/+15 |
| | | | | llvm-svn: 130181 | ||||
* | Give MC/MCDisassembler/Disassembler.h a header guard. | Sebastian Redl | 2011-04-24 | 1 | -0/+6 |
| | | | | llvm-svn: 130096 | ||||
* | Remove unused STL header includes. | Jay Foad | 2011-04-23 | 1 | -1/+0 |
| | | | | llvm-svn: 130068 | ||||
* | Delete the other unused variable in this function. Sorry I missed this | Chandler Carruth | 2011-04-22 | 1 | -1/+0 |
| | | | | | | the first time through. llvm-svn: 129969 | ||||
* | Remove an unused variable from a function. This is a likely cut-paste-o. | Chandler Carruth | 2011-04-22 | 1 | -1/+0 |
| | | | | | | | | Silences GCC warning. I wonder why Clang doesn't warn on this... llvm-svn: 129968 | ||||
* | Compute the size of the FDE encoding instead of hard coding it. Update | Rafael Espindola | 2011-04-22 | 1 | -15/+20 |
| | | | | | | X8664_ELFTargetObjectFile::getFDEEncoding to match reality. llvm-svn: 129959 | ||||
* | Remove unused argument. | Rafael Espindola | 2011-04-21 | 5 | -24/+18 |
| | | | | llvm-svn: 129955 | ||||
* | Don't pass address spaces to EmitULEB128IntValue. | Rafael Espindola | 2011-04-21 | 1 | -3/+3 |
| | | | | llvm-svn: 129953 | ||||
* | Fix relative relocations. This is sufficient for running the rust testsuite with | Rafael Espindola | 2011-04-21 | 1 | -1/+6 |
| | | | | | | MC :-) llvm-svn: 129923 | ||||
* | Behave like gnu as when a relocation crosses sections. | Rafael Espindola | 2011-04-20 | 1 | -8/+13 |
| | | | | llvm-svn: 129850 | ||||
* | Made the MC disassembler check before accessing | Sean Callanan | 2011-04-20 | 1 | -0/+9 |
| | | | | | | | | MCInst operands for ARM. This allows it to be more tolerant of malformed MCInsts or incorrect instruction metadata. llvm-svn: 129840 | ||||
* | malloc elimination: it's a bad idea to use raw_svector_ostream on a | Eli Friedman | 2011-04-18 | 1 | -1/+4 |
| | | | | | | | | small heap-allocated SmallString because it unconditionally forces a malloc. (Revised version of r129688, with the necessary flush() call.) llvm-svn: 129716 | ||||
* | Reduce clutter in asm output. Do not emit source location as comment for ↵ | Devang Patel | 2011-04-18 | 5 | -8/+19 |
| | | | | | | each instruction. llvm-svn: 129715 | ||||
* | Revert r129688; it's breaking buildbots. | Eli Friedman | 2011-04-18 | 1 | -3/+1 |
| | | | | llvm-svn: 129689 | ||||
* | More malloc elimination: it's a bad idea to use raw_svector_ostream on a | Eli Friedman | 2011-04-18 | 1 | -1/+3 |
| | | | | | | small heap-allocated SmallString because it unconditionally forces a malloc. llvm-svn: 129688 | ||||
* | Make the StringMaps attached to MCContext use the MCContext's allocator; | Eli Friedman | 2011-04-18 | 1 | -1/+3 |
| | | | | | | reduces the number of calls to malloc(). llvm-svn: 129687 | ||||
* | Fix a ton of comment typos found by codespell. Patch by | Chris Lattner | 2011-04-15 | 3 | -4/+4 |
| | | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558 | ||||
* | Be consistent about being virtual and returning void in the cfi methods. | Rafael Espindola | 2011-04-12 | 3 | -73/+94 |
| | | | | | | Implement the ones that were missing in the asm streamer. llvm-svn: 129413 | ||||
* | Remove LastOffset from the asm parser. | Rafael Espindola | 2011-04-12 | 3 | -21/+20 |
| | | | | llvm-svn: 129378 | ||||
* | Fix the case of a .cfi_rel_offset before any .cfi_def_cfa_offset. | Rafael Espindola | 2011-04-12 | 3 | -77/+116 |
| | | | | llvm-svn: 129362 | ||||
* | Implement .cfi_same_value. | Rafael Espindola | 2011-04-12 | 3 | -0/+32 |
| | | | | llvm-svn: 129361 | ||||
* | Match case for invalid constant error messages and add a new | Eric Christopher | 2011-04-12 | 1 | -5/+5 |
| | | | | | | test for invalid hexadecimals. llvm-svn: 129326 | ||||
* | To avoid printing out multiple error messages for cases like: | Eric Christopher | 2011-04-12 | 1 | -0/+3 |
| | | | | | | | | | | .long 80+08 go ahead and assume that if we've got an Error token that we handled it already. Otherwise if it's a token we can't handle then go ahead and return the default error. llvm-svn: 129322 | ||||
* | Lex, and then fail on invalid constants. | Eric Christopher | 2011-04-11 | 1 | -1/+1 |
| | | | | | | | | Testcase forthcoming. rdar://8490596 llvm-svn: 129309 | ||||
* | Implement cfi_rel_offset | Rafael Espindola | 2011-04-11 | 1 | -1/+33 |
| | | | | llvm-svn: 129306 | ||||
* | implement .cfi_adjust_cfa_offset. | Rafael Espindola | 2011-04-11 | 1 | -1/+28 |
| | | | | llvm-svn: 129296 | ||||
* | Adding support for printing operands symbolically to llvm's public 'C' | Kevin Enderby | 2011-04-11 | 2 | -2/+3 |
| | | | | | | | | | | | | | disassembler API. Hooked this up to the ARM target so such tools as Darwin's otool(1) can now print things like branch targets for example this: blx _puts instead of this: blx #-36 And even print the expression encoded in the Mach-O relocation entried for things like this: movt r0, :upper16:((_foo-_bar)+1234) llvm-svn: 129284 | ||||
* | Fix potential buffer overflow on win32. | Benjamin Kramer | 2011-04-09 | 1 | -12/+9 |
| | | | | llvm-svn: 129214 | ||||
* | Don't store Twine temporaries, it's not safe. | Benjamin Kramer | 2011-04-09 | 1 | -8/+6 |
| | | | | | | And don't append the name over and over again in the loop. llvm-svn: 129210 | ||||
* | Redirected errors from the AsmParser to the proper | Sean Callanan | 2011-04-09 | 1 | -0/+10 |
| | | | | | | | | | error stream, in cases where the AsmParser is being invoked by EDDisassembler. Before, they were being sent to errs() because no error handler was installed in the SourceMgr. llvm-svn: 129177 | ||||
* | Micro optimization and improved similarity with gas' output: | Rafael Espindola | 2011-04-07 | 1 | -10/+38 |
| | | | | | | When two section names share a suffix, reuse the entry in shstrtab. llvm-svn: 129115 | ||||
* | Add support for .skip. | Rafael Espindola | 2011-04-07 | 1 | -1/+1 |
| | | | | | | | Patch by Roman Divacky. Fixes PR9361. llvm-svn: 129106 | ||||
* | Fixed a bug where missing EDInstInfo would cause | Sean Callanan | 2011-04-07 | 1 | -0/+3 |
| | | | | | | tokenization to crash and burn. llvm-svn: 129051 | ||||
* | An MCDisassembler has the option to not implement | Shantonu Sen | 2011-04-05 | 1 | -2/+4 |
| | | | | | | | | | | getEDInfo(), in which case this code would dereference NULL. EDInst can already handle NULL info, so avoid the dereference and pass NULL through. Reviewed by Sean Callanan llvm-svn: 128904 | ||||
* | Added support symbolic floating point constants in the MC assembler for Infinity | Kevin Enderby | 2011-03-29 | 1 | -3/+11 |
| | | | | | | and Nans with the same strings as GAS supports. rdar://8673024 llvm-svn: 128488 | ||||
* | Fix the MSVC build. | Francois Pichet | 2011-03-29 | 1 | -0/+4 |
| | | | | llvm-svn: 128441 | ||||
* | MC: Add support for disabling "temporary label" behavior. Useful for debugging | Daniel Dunbar | 2011-03-28 | 1 | -3/+6 |
| | | | | | | on Darwin. llvm-svn: 128430 | ||||
* | Unbreak CMake build. | Ted Kremenek | 2011-03-28 | 1 | -1/+2 |
| | | | | llvm-svn: 128426 | ||||
* | Again adding a C API to the disassembler for use by such tools as Darwin's | Kevin Enderby | 2011-03-28 | 2 | -0/+259 |
| | | | | | | | | | | | otool(1), this time with the needed fix for case sensitive file systems :) . This is a work in progress as the interface for producing symbolic operands is not done. But a hacked prototype using information from the object file's relocation entiries and replacing immediate operands with MCExpr's has been shown to work with no changes to the instrucion printer. These APIs will be moved into a dynamic library at some point. llvm-svn: 128415 | ||||
* | Fix whitespace. | NAKAMURA Takumi | 2011-03-27 | 1 | -2/+2 |
| | | | | llvm-svn: 128370 | ||||
* | Remove the files for r128308 as it is causing a buildbot failure. | Kevin Enderby | 2011-03-26 | 2 | -259/+0 |
| | | | | llvm-svn: 128309 | ||||
* | Adding a C API to the disassembler for use by such tools as Darwin's otool(1). | Kevin Enderby | 2011-03-26 | 2 | -0/+259 |
| | | | | | | | | | | This is a work in progress as the interface for producing symbolic operands is not done. But a hacked prototype using information from the object file's relocation entiries and replacing immediate operands with MCExpr's has been shown to work with no changes to the instrucion printer. These APIs will be moved into a dynamic library at some point. llvm-svn: 128308 | ||||
* | MC: Improve some diagnostics on uses of '.' pseudo-symbol. | Daniel Dunbar | 2011-03-25 | 1 | -1/+18 |
| | | | | llvm-svn: 128289 | ||||
* | Tidyness. | Daniel Dunbar | 2011-03-25 | 1 | -2/+2 |
| | | | | llvm-svn: 128288 | ||||
* | Add asm parsing support w/ testcases for strex/ldrex family of instructions | Bruno Cardoso Lopes | 2011-03-24 | 2 | -1/+7 |
| | | | | llvm-svn: 128236 | ||||
* | Clean up assembly statement separator support. | Jim Grosbach | 2011-03-24 | 2 | -5/+15 |
| | | | | | | | | The MC asm lexer wasn't honoring a non-default (anything but ';') statement separator. Fix that, and generalize a bit to support multi-character statement separators. llvm-svn: 128227 | ||||
* | Fix a bug introduced by my patch yesterday: BL is a 4-byte instructions like ↵ | Owen Anderson | 2011-03-23 | 1 | -3/+2 |
| | | | | | | BLX, rather than a 2-byte instruction like B. llvm-svn: 128169 | ||||
* | RIT_ARM_ThumbBranch32Bit relocations are not used and should never be generated. | Owen Anderson | 2011-03-22 | 1 | -6/+2 |
| | | | | | | | This fixes kimwitu++, bullet, and tramp3dv4 with the ARM integrated assembler. Fixes <rdar://problem/9165738>. llvm-svn: 128117 | ||||
* | Add support for Thumb interworking addresses for symbol offsets that get ↵ | Owen Anderson | 2011-03-21 | 1 | -0/+5 |
| | | | | | | | | constant folded very early. This fixes SPASS with -integrated-as. <rdar://problem/9165399> llvm-svn: 128037 | ||||
* | We need to pass the TargetMachine object to the InstPrinter if we are printing | Bill Wendling | 2011-03-21 | 1 | -1/+2 |
| | | | | | | | | | the alias of an InstAlias instead of the thing being aliased. Because we need to know the features that are valid for an InstAlias. This is part of a work-in-progress. llvm-svn: 127986 |