summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-02-10 22:43:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-02-10 22:43:13 +0000
commit4fc6044a5ed9fd339f46d18980360a40c98b11d5 (patch)
treeeaae0768e28509c193f5c8f1155f41d95ccce7fe /llvm/lib/IR/DataLayout.cpp
parentb4a5aa239c0484782899485d346c892fa05645ef (diff)
downloadbcm5719-llvm-4fc6044a5ed9fd339f46d18980360a40c98b11d5.tar.gz
bcm5719-llvm-4fc6044a5ed9fd339f46d18980360a40c98b11d5.zip
Split the creation of program headers in a few steps.
IMHO this makes the code easier to read and should help with linker scripts. This is strongly based on D16575. The main differences are: We record a range of sections, not every section in a program header. scanHeaders takes case of deciding what goes in every program header, including PT_GNU_RELRO We create dummy sections for the start of the file With this, program header creation has 3 isolated stages: Map sections to program headers. Assign addresses to *sections* Looking at sections find the address and size of each program header. Thanks to George Rimar for the initial version. llvm-svn: 260453
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud