[PATCH] Restructure the propagation of -fPIC/-fPIE.

Rafael EspĂ­ndola via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 21 15:53:03 PDT 2016


The PIC and PIE levels are not independent. In fact, if PIE is defined
it is always the same as PIC.

This is clear in the driver where ParsePICArgs returns a PIC level and
a IsPIE boolean. Unfortunately that is currently lost and we pass two
redundant levels down the pipeline.

This patch keeps a bool and a PIC level all the way down to codegen. I
intend to send a patch for LLVM tomorrow so that CodeGen too can be
simplified.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Restructure-the-propagation-of-fPIC-fPIE.patch
Type: text/x-patch
Size: 12273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160621/e5bd75ba/attachment-0001.bin>


More information about the cfe-commits mailing list