summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ConstantBuilder.h
Commit message (Collapse)AuthorAgeFilesLines
* Promote ConstantInitBuilder to be a public CodeGen API; it'sJohn McCall2017-03-021-444/+0
| | | | | | a generally useful utility for other frontends. NFC. llvm-svn: 296806
* Struct GEPs must use i32, not whatever size_t is. It should be safeJohn McCall2016-12-011-2/+4
| | | | | | | to do this unconditionally, given that the indices will always be small constant integers anyway. llvm-svn: 288440
* Teach ConstantBuilder how to emit a reference to the current positionJohn McCall2016-12-011-0/+40
| | | | | | that will be filled in when the initializer is set. llvm-svn: 288313
* Finish adopting ConstantInitBuilder in CGObjCGNU. NFC.John McCall2016-11-301-0/+7
| | | | llvm-svn: 288269
* Switch CGObjCMac to use ConstantInitBuilder. Whew.John McCall2016-11-301-2/+63
| | | | | | | Not strictly NFC because I did change the order of emission of some global constants, but it shouldn't make any difference. llvm-svn: 288229
* Hide the result of building a constant initializer. NFC.John McCall2016-11-281-31/+74
| | | | llvm-svn: 288080
* ConstantBuilder -> ConstantInitBuilder for clarity, andJohn McCall2016-11-281-95/+112
| | | | | | | move the member classes up to top level to allow forward declarations to name them. NFC. llvm-svn: 288079
* Introduce a helper class for building complex constant initializers. NFC.John McCall2016-11-191-0/+274
I've adopted this in most of the places it makes sense, but v-tables and CGObjCMac will need a second pass. llvm-svn: 287437
OpenPOWER on IntegriCloud