summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELFCodeEmitter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old ELF writer.Rafael Espindola2012-01-051-205/+0
| | | | llvm-svn: 147615
* Fix asserts in CodeGen from:Richard Trieu2011-09-101-1/+1
| | | | | | | | | | assert("error"); to: assert(0 && "error"); llvm-svn: 139449
* Get rid of a bunch of duplicated ELF enum values.Eli Friedman2010-07-161-1/+1
| | | | llvm-svn: 108520
* getMachineBasicBlockAddress returns a uintptr_t - don't truncateDuncan Sands2010-06-291-1/+1
| | | | | | | to unsigned only to extend back to a pointer sized value on the next line. llvm-svn: 107139
* prep work to support a future where getJumpTableInfo will returnChris Lattner2010-01-251-3/+4
| | | | | | | a null pointer for functions with no jump tables. No functionality change. llvm-svn: 94469
* Change errs() to dbgs().David Greene2010-01-041-1/+1
| | | | llvm-svn: 92498
* Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner2009-08-221-1/+1
| | | | llvm-svn: 79763
* Add missing includes.David Greene2009-08-191-0/+1
| | | | llvm-svn: 79476
* Remove hack used to strip unwanted chars from section nameBruno Cardoso Lopes2009-08-131-3/+3
| | | | | | | Use MCSectionELF methods as much as possible, removing some ELFWriter methods which are now unused llvm-svn: 78940
* - Remove custom handling of jumptables by the elf writter (this wasBruno Cardoso Lopes2009-08-051-15/+15
| | | | | | | | | | | | a dirty hack and isn't need anymore since the last x86 code emitter patch) - Add a target-dependent modifier to addend calculation - Use R_X86_64_32S relocation for X86::reloc_absolute_word_sext - Use getELFSectionFlags whenever possible - fix getTextSection to use TLOF and emit the right text section - Handle global emission for static ctors, dtors and Type::PointerTyID - Some minor fixes llvm-svn: 78176
* Handle null and file symbol on doInitializationBruno Cardoso Lopes2009-07-281-1/+1
| | | | llvm-svn: 77354
* Handle external symbols for ELF and add some static methods to ELFSymBruno Cardoso Lopes2009-07-271-9/+6
| | | | llvm-svn: 77232
* More migration to raw_ostream, the water has dried up around the iostream hole.Daniel Dunbar2009-07-251-1/+3
| | | | | | | | | | - Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. llvm-svn: 77019
* Change ELFCodeEmitter logic to emit the constant pool and jump tables toBruno Cardoso Lopes2009-07-211-22/+24
| | | | | | | | their appropriate sections before the code itself. They need to be emitted before the function because on some targets (x86 but not x86_64) the later may reference a JT or CP entry address llvm-svn: 76672
* Support adding relocations for data sections, handling the cases whereBruno Cardoso Lopes2009-07-211-0/+4
| | | | | | | global declared symbols are initialized with references from other global symbols. llvm-svn: 76540
* Use R_X86_64_32S to handle Jump Table Index relocation entries. Hide TAI ↵Bruno Cardoso Lopes2009-07-181-15/+6
| | | | | | usage inside getSection* functions llvm-svn: 76347
* Use a better name for the label relocations while emitting them for Jump TablesBruno Cardoso Lopes2009-07-181-1/+1
| | | | llvm-svn: 76334
* Add support to properly reference private symbols on relocation entries.Bruno Cardoso Lopes2009-07-181-1/+4
| | | | | | | Use proper relocation type to build relocations for JumpTables (rodata sections). llvm-svn: 76326
* use std::vector instead of std::list for both Section and Symbol lists becauseBruno Cardoso Lopes2009-07-151-15/+10
| | | | | | we care more about random access than insertion/deletion of elements. llvm-svn: 75828
* llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin2009-07-141-1/+1
| | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
* Cleanup the global emission and refactor some codeBruno Cardoso Lopes2009-07-131-1/+1
| | | | llvm-svn: 75537
* assert(0) -> LLVM_UNREACHABLE.Torok Edwin2009-07-111-1/+2
| | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
* Changed ELFCodeEmitter to inherit from ObjectCodeEmitterBruno Cardoso Lopes2009-07-061-30/+13
| | | | llvm-svn: 74821
* Factor some code out and support for Jump Table relocationsBruno Cardoso Lopes2009-07-031-1/+65
| | | | llvm-svn: 74760
* shrinking down #includesBruno Cardoso Lopes2009-07-021-26/+15
| | | | llvm-svn: 74718
* Remove getFunctionAlignment from TargetELFInfo and use new MachineFunction ↵Bruno Cardoso Lopes2009-07-021-4/+5
| | | | | | alignment method llvm-svn: 74686
* Support Constant Pool SectionsBruno Cardoso Lopes2009-06-251-4/+44
| | | | | | Add section symbols to the symbol table llvm-svn: 74170
* Add more methods to gather target specific elf stuffBruno Cardoso Lopes2009-06-221-16/+14
| | | | | | | | Support for .text relocations, implementing TargetELFWriter overloaded methods for x86/x86_64. Use a map to track global values to their symbol table indexes Code cleanup and small fixes llvm-svn: 73894
* Introduce new BinaryObject (blob) class, ELF Writer modified to use it. ↵Bruno Cardoso Lopes2009-06-141-5/+7
| | | | | | BinaryObject.h by Aaron Gray llvm-svn: 73333
* Support for ELF VisibilityBruno Cardoso Lopes2009-06-111-13/+6
| | | | | | | | Emission for globals, using the correct data sections Function alignment can be computed for each target using TargetELFWriterInfo Some small fixes llvm-svn: 73201
* Simple ELF32/64 binary files can now be emitted for x86 and x86_64 withoutBruno Cardoso Lopes2009-06-071-2/+26
| | | | | | relocation sections. llvm-svn: 73038
* Remove elf specific info from ELFWriter.h to Elf.h. Code cleanup and more ↵Bruno Cardoso Lopes2009-06-061-5/+5
| | | | | | comments added llvm-svn: 72982
* ELF Code Emitter now uses CurBufferPtr, BufferBegin and BufferEnd, as do JIT andBruno Cardoso Lopes2009-06-051-29/+49
| | | | | | | MachO Writer. This will change with the arrival of ObjectCodeEmitter and BinaryObject llvm-svn: 72906
* Move ELFCodeEmiter stuff to new filesBruno Cardoso Lopes2009-06-031-0/+94
llvm-svn: 72785
OpenPOWER on IntegriCloud