summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachOWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Drop 'const'Devang Patel2007-05-031-1/+1
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-1/+1
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-1/+3
| | | | llvm-svn: 36632
* Remove unneeded header file.Reid Spencer2007-03-041-1/+0
| | | | llvm-svn: 34903
* http://llvm.org/bugs/show_bug.cgi?id=1237Nate Begeman2007-03-031-5/+10
| | | | llvm-svn: 34875
* Fix a typo, thanks Bill!Nate Begeman2007-02-281-1/+1
| | | | llvm-svn: 34741
* More Mach-O writer improvements.Nate Begeman2007-02-281-29/+56
| | | | llvm-svn: 34740
* For PR1195:Reid Spencer2007-02-151-1/+1
| | | | | | | Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293
* Generalize TargetData strings, to support more interesting forms of data.Chris Lattner2007-02-141-2/+2
| | | | | | Patch by Scott Michel. llvm-svn: 34266
* eliminate temporary vectors.Chris Lattner2007-02-101-2/+2
| | | | llvm-svn: 34161
* Privatize StructLayout::MemberOffsets, adding an accessorChris Lattner2007-02-101-1/+2
| | | | llvm-svn: 34156
* Add function to create a file writer.Bill Wendling2007-02-081-2/+13
| | | | llvm-svn: 34031
* Fix a fixme by correctly calculating preferred alignments for functions,Nate Begeman2007-02-071-11/+14
| | | | | | | | | based on the alignment of the symbol and the target data's preferred align for that type. Also, rename some arguments for consistency. llvm-svn: 33984
* Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.Bill Wendling2007-02-031-2/+7
| | | | llvm-svn: 33816
* Properly support cstringsNate Begeman2007-01-291-3/+8
| | | | llvm-svn: 33629
* Handle multiple functions, properly mangle symbols, and fix support forNate Begeman2007-01-261-16/+41
| | | | | | scattered relocations. llvm-svn: 33555
* Make ivars private and use getters. Have the MachOWriter return "Mach-OBill Wendling2007-01-241-2/+2
| | | | | | Writer" for the pass name. llvm-svn: 33483
* Use the TargetMachOWriterInfo class to get this information.Bill Wendling2007-01-241-2/+2
| | | | llvm-svn: 33478
* Teach TargetData to handle 'preferred' alignment for each target, and useChris Lattner2007-01-201-1/+1
| | | | | | these alignment amounts to align scalars when we can. Patch by Scott Michel! llvm-svn: 33409
* Have the OutputBuffer take the is64Bit and isLittleEndian booleans.Bill Wendling2007-01-181-7/+14
| | | | llvm-svn: 33316
* Changed to use the OutputBuffer instead of the methods in MachO and ELFBill Wendling2007-01-171-74/+88
| | | | | | writers. llvm-svn: 33311
* Revert patch.Bill Wendling2007-01-171-90/+76
| | | | llvm-svn: 33298
* Use the methods in the TargetObjInfo object instead of internal methods.Bill Wendling2007-01-171-76/+90
| | | | llvm-svn: 33289
* For PR1064:Reid Spencer2007-01-121-29/+39
| | | | | | | | | | | | | | | | | | | | | | | Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. llvm-svn: 33113
* Rename BoolTy as Int1Ty. Patch by Sheng Zhou.Reid Spencer2007-01-111-1/+1
| | | | llvm-svn: 33076
* For PR950:Reid Spencer2006-12-311-8/+4
| | | | | | | | | | | | | | | | | | Three changes: 1. Convert signed integer types to signless versions. 2. Implement the @sext and @zext parameter attributes. Previously the type of an function parameter was used to determine whether it should be sign extended or zero extended before the call. This information is now communicated via the function type's parameter attributes. 3. The interface to LowerCallTo had to be changed in order to accommodate the parameter attribute information. Although it would have been convenient to pass in the FunctionType itself, there isn't always one present in the caller. Consequently, a signedness indication for the result type and for each parameter was provided for in the interface to this method. All implementations were changed to make the adjustment necessary. llvm-svn: 32788
* Properly mangles symbol table namesNate Begeman2006-12-111-112/+333
| | | | | | | | | Supports constant pools Supports relocations to jump tables Supports relocations within the data segment (global = address of global) Allocates memory in a non-hacky for all non-code objects. llvm-svn: 32430
* Removed more <iostream> includesBill Wendling2006-12-071-1/+0
| | | | llvm-svn: 32321
* Match MachineCodeEmitter changes.Evan Cheng2006-11-161-1/+1
| | | | llvm-svn: 31787
* Behold, more work on relocations. Things are looking pretty good now.Nate Begeman2006-09-101-38/+106
| | | | llvm-svn: 30240
* First pass at supporting relocations. Relocations are written correctly toNate Begeman2006-09-081-43/+75
| | | | | | | the file now, however the relocated address is currently wrong. Fixing that will require some deep pondering. llvm-svn: 30207
* improve compat with certain versions of GCC (on cygwin?)Chris Lattner2006-09-021-1/+1
| | | | llvm-svn: 30054
* Properly size the string table, and emit symbol table and string tableNate Begeman2006-08-261-59/+81
| | | | | | entries in the correct order, fixing several fixmes. llvm-svn: 29902
* Get closer to handling globals correctly. We now generally get them in theNate Begeman2006-08-251-5/+70
| | | | | | right section. llvm-svn: 29871
* Initial checkin of the Mach-O emitter. There's plenty of fixmes, but itNate Begeman2006-08-231-0/+428
does emit linkable .o files in very simple cases. llvm-svn: 29850
OpenPOWER on IntegriCloud