Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid a gcc warning. | Rafael Espindola | 2011-05-10 | 1 | -1/+2 |
| | | | | llvm-svn: 131161 | ||||
* | On MachO, unlike ELF, there should be no relocation to produce the CIE pointer. | Rafael Espindola | 2011-05-10 | 1 | -8/+17 |
| | | | | llvm-svn: 131149 | ||||
* | The EH symbols are only needed in eh_frame, not debug_frame. | Rafael Espindola | 2011-05-10 | 1 | -2/+2 |
| | | | | llvm-svn: 131146 | ||||
* | In a debug_frame the cfi offset is to the start of the debug_frame section! | Rafael Espindola | 2011-05-10 | 1 | -3/+7 |
| | | | | llvm-svn: 131129 | ||||
* | Add support for producing .deubg_frame sections. | Rafael Espindola | 2011-05-10 | 1 | -45/+59 |
| | | | | llvm-svn: 131121 | ||||
* | Small cleanups. | Rafael Espindola | 2011-05-10 | 1 | -8/+5 |
| | | | | llvm-svn: 131120 | ||||
* | Remove unused argument. | Rafael Espindola | 2011-05-10 | 1 | -12/+4 |
| | | | | llvm-svn: 131118 | ||||
* | Eliminate an unused line to fix a warning. | NAKAMURA Takumi | 2011-05-08 | 1 | -1/+0 |
| | | | | llvm-svn: 131078 | ||||
* | Don't force relaxation of AdvanceLoc instructions on OS X. gdb is happy with | Rafael Espindola | 2011-05-08 | 1 | -11/+5 |
| | | | | | | | the smaller encoding and this cuts 270336 bytes from a release version of clang and 1246272 bytes from a debug build. llvm-svn: 131067 | ||||
* | Switch Darwin to the generic CIE/FDE printer. | Rafael Espindola | 2011-05-06 | 1 | -64/+0 |
| | | | | llvm-svn: 131031 | ||||
* | MCDwarf: Don't save Twine to local variable, this is almost never safe to do | Daniel Dunbar | 2011-05-03 | 1 | -2/+2 |
| | | | | | | | (and should thus never be done). - Should fix a crash on win32. llvm-svn: 130793 | ||||
* | GCC uses a different encoding of pointers in the FDE when using | Rafael Espindola | 2011-05-01 | 1 | -8/+12 |
| | | | | | | -fno-dwarf2-cfi-asm. Implement the same behavior. llvm-svn: 130637 | ||||
* | Simplify the handling of pcrel relocations on ELF. Now we do the right thing | Rafael Espindola | 2011-05-01 | 1 | -11/+6 |
| | | | | | | | | | | for all symbol differences and can drop the old EmitPCRelSymbolValue method. This also make getExprForFDESymbol on ELF equal to the one on MachO, and it can be made non-virtual. llvm-svn: 130634 | ||||
* | Avoid some uses of .uleb128. This is a small speedup and more importantly | Rafael Espindola | 2011-04-29 | 1 | -17/+22 |
| | | | | | | | lets this code be used when producing assembly code for old assemblers without uleb support. llvm-svn: 130544 | ||||
* | Last bit by bit compatibility patch to MCDwarf.cpp: If a FDE with no LSDA is | Rafael Espindola | 2011-04-29 | 1 | -5/+20 |
| | | | | | | assigned to a CIE that requires one, just output a 0. llvm-svn: 130472 | ||||
* | Add an alternative implementation of CIE and FDE emission that outputs them | Rafael Espindola | 2011-04-29 | 1 | -0/+58 |
| | | | | | | in the same order as the one in CodeGen. llvm-svn: 130471 | ||||
* | Add the getExprForFDESymbol method that responsible for computing the | Rafael Espindola | 2011-04-28 | 1 | -12/+9 |
| | | | | | | expressions used in the FDE to refer to symbols. llvm-svn: 130437 | ||||
* | Add a getExprForPersonalitySymbol method to MCAsmInfo. Use it when | Rafael Espindola | 2011-04-28 | 1 | -1/+14 |
| | | | | | | converting the symbol passed to .cfi_personality into bytes is the file. llvm-svn: 130400 | ||||
* | Mark the EH symbol global or weak if the corresponding function is. | Rafael Espindola | 2011-04-28 | 1 | -0/+1 |
| | | | | llvm-svn: 130397 | ||||
* | Add a small temporary hack for producing identical eh_frame sections on OS X. | Rafael Espindola | 2011-04-28 | 1 | -5/+12 |
| | | | | | | | This removes one of the main advantages of moving eh_frame to MC, but makes the transition a lot easier to debug (run md5). llvm-svn: 130379 | ||||
* | Produce the EH_frame# symbols if needed. | Rafael Espindola | 2011-04-28 | 1 | -2/+11 |
| | | | | llvm-svn: 130378 | ||||
* | Forward isFunctionEHFrameSymbolPrivate. If it is false, produce the foo.eh | Rafael Espindola | 2011-04-28 | 1 | -0/+7 |
| | | | | | | symbols. llvm-svn: 130375 | ||||
* | Force some values to be absolute and align based on the FDE pointers size. A ↵ | Rafael Espindola | 2011-04-27 | 1 | -6/+6 |
| | | | | | | | | small step towards using .cfi_* on OS X. llvm-svn: 130273 | ||||
* | 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 | 1 | -2/+2 |
| | | | | llvm-svn: 129955 | ||||
* | Don't pass address spaces to EmitULEB128IntValue. | Rafael Espindola | 2011-04-21 | 1 | -3/+3 |
| | | | | llvm-svn: 129953 | ||||
* | Remove LastOffset from the asm parser. | Rafael Espindola | 2011-04-12 | 1 | -2/+6 |
| | | | | llvm-svn: 129378 | ||||
* | Fix the case of a .cfi_rel_offset before any .cfi_def_cfa_offset. | Rafael Espindola | 2011-04-12 | 1 | -71/+103 |
| | | | | llvm-svn: 129362 | ||||
* | Implement .cfi_same_value. | Rafael Espindola | 2011-04-12 | 1 | -0/+6 |
| | | | | llvm-svn: 129361 | ||||
* | Rename TargetFrameInfo into TargetFrameLowering. Also, put couple of FIXMEs ↵ | Anton Korobeynikov | 2011-01-10 | 1 | -1/+1 |
| | | | | | | and fixes here and there. llvm-svn: 123170 | ||||
* | Make a bunch of symbols internal. | Benjamin Kramer | 2010-12-30 | 1 | -18/+17 |
| | | | | llvm-svn: 122642 | ||||
* | Correctly encode pcrel|indirect. | Rafael Espindola | 2010-12-29 | 1 | -2/+1 |
| | | | | llvm-svn: 122624 | ||||
* | Fix bug when trying to output uint16_t or uint32_t. | Rafael Espindola | 2010-12-29 | 1 | -2/+9 |
| | | | | llvm-svn: 122615 | ||||
* | Implement cfi_def_cfa. Also don't convert to dwarf reg numbers twice. Looks | Rafael Espindola | 2010-12-29 | 1 | -14/+25 |
| | | | | | | like 6 is a fixed point of that and so the previous tests were OK :-) llvm-svn: 122614 | ||||
* | Don't produce a "DW_CFA_advance_loc 0". | Rafael Espindola | 2010-12-28 | 1 | -1/+2 |
| | | | | llvm-svn: 122609 | ||||
* | Implement .cfi_remember_state and .cfi_restore_state. | Rafael Espindola | 2010-12-28 | 1 | -42/+68 |
| | | | | llvm-svn: 122602 | ||||
* | Fix warning about size potentially being used uninitialized | Duncan Sands | 2010-12-28 | 1 | -1/+0 |
| | | | | | | when doing a release build. llvm-svn: 122594 | ||||
* | Relax address updates in the eh_frame section. | Rafael Espindola | 2010-12-28 | 1 | -6/+28 |
| | | | | llvm-svn: 122591 | ||||
* | Start adding basic support for emitting the call frame instructions. | Rafael Espindola | 2010-12-28 | 1 | -1/+5 |
| | | | | llvm-svn: 122590 | ||||
* | Add support for .cfi_lsda. | Rafael Espindola | 2010-12-27 | 1 | -45/+114 |
| | | | | llvm-svn: 122584 | ||||
* | Add support for the same encodings of the personality function that gnu as | Rafael Espindola | 2010-12-27 | 1 | -6/+45 |
| | | | | | | supports. llvm-svn: 122577 | ||||
* | Fix .cfi_personality on 32 bit systems. | Rafael Espindola | 2010-12-26 | 1 | -1/+1 |
| | | | | llvm-svn: 122570 | ||||
* | Add basic support for .cfi_personality. | Rafael Espindola | 2010-12-26 | 1 | -7/+24 |
| | | | | llvm-svn: 122566 | ||||
* | "Fix" FDE alignment to match what gas does. | Rafael Espindola | 2010-12-17 | 1 | -9/+17 |
| | | | | llvm-svn: 122006 | ||||
* | Fixed version of 121434 with no new memory leaks. | Rafael Espindola | 2010-12-10 | 1 | -12/+198 |
| | | | | llvm-svn: 121471 | ||||
* | Revert my previous patch to make the valgrind bots happy. | Rafael Espindola | 2010-12-10 | 1 | -198/+12 |
| | | | | llvm-svn: 121461 | ||||
* | Initial support for the cfi directives. This is just enough to get | Rafael Espindola | 2010-12-09 | 1 | -12/+198 |
| | | | | | | | | | | | f: .cfi_startproc nop .cfi_endproc assembled (on ELF). llvm-svn: 121434 | ||||
* | Use const references. | Rafael Espindola | 2010-12-09 | 1 | -10/+11 |
| | | | | llvm-svn: 121426 |