Lines Matching defs:PIC
1114 /// this compile should be using PIC mode or not. Returns a tuple of
1122 bool PIC = PIE || ToolChain.isPICDefault();
1123 // The Darwin/MachO default to use PIC does not apply when using -static.
1125 PIE = PIC = false;
1126 bool IsPICLevelTwo = PIC;
1131 // Android-specific defaults for PIC/PIE
1143 PIC = true; // "-fpic"
1148 PIC = true; // "-fPIC"
1179 // AMDGPU-specific defaults for PIC.
1181 PIC = true;
1183 // The last argument relating to either PIC or PIE wins, and no
1185 // '-fno-...' arguments, both PIC and PIE are disabled. Any PIE
1186 // option implicitly enables PIC at the same level.
1202 // Check whether the tool chain trumps the PIC-ness decision. If the PIC-ness
1203 // is forced, then neither PIC nor PIE flags will have no effect.
1210 PIC =
1215 PIE = PIC = false;
1220 PIC = true;
1229 // Introduce a Darwin and PS4-specific hack. If the default is PIC, but the
1230 // PIC level would've been set to level 1, force it back to level 2 PIC
1232 if (PIC && (Triple.isOSDarwin() || EffectiveTriple.isPS4CPU()))
1235 // This kernel flags are a trump-card: they will disable PIC/PIE
1240 PIC = PIE = false;
1249 // FIXME: Warn when this flag trumps some other PIC or PIE flag.
1251 // Only a forced PIC mode can cause the actual compile to have PIC defines
1254 PIC = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced();
1256 return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2U : 0U, false);
1288 // ROPI and RWPI are not compatible with PIC or PIE.
1289 if ((ROPI || RWPI) && (PIC || PIE))
1296 // When targeting the N64 ABI, PIC is the default, except in the case
1298 // at next check regardless of PIC being set below.
1300 PIC = true;
1305 // does not use PIC level 2 for historical reasons.
1309 if (PIC)