Lines Matching defs:PIC
2186 bool PIC = PIE || getToolChain().isPICDefault();
2187 bool IsPICLevelTwo = PIC;
2189 // For the PIC and PIE flag options, this logic is different from the
2193 // argument relating to either PIC or PIE wins, and no other argument is
2195 // both PIC and PIE are disabled. Any PIE option implicitly enables PIC
2201 // Check whether the tool chain trumps the PIC-ness decision. If the PIC-ness
2202 // is forced, then neither PIC nor PIE flags will have no effect.
2209 PIC = PIE || O.matches(options::OPT_fPIC) ||
2214 PIE = PIC = false;
2219 // Introduce a Darwin-specific hack. If the default is PIC but the flags
2220 // specified while enabling PIC enabled level 1 PIC, just force it back to
2221 // level 2 PIC instead. This matches the behavior of Darwin GCC (based on my
2223 if (PIC && getToolChain().getTriple().isOSDarwin())
2227 // PIC or PIE options above, if these show up, PIC is disabled.
2231 PIC = PIE = false;
2233 PIC = PIE = false;
2242 // FIXME: Warn when this flag trumps some other PIC or PIE flag.
2247 // Only a forced PIC mode can cause the actual compile to have PIC defines
2255 // Currently, LLVM only knows about PIC vs. static; the PIE differences are
2258 CmdArgs.push_back(PIC ? "pic" : "static");
2260 if (PIC) {