Lines Matching defs:PIC
3263 /// this compile should be using PIC mode or not. Returns a tuple of
3271 bool PIC = PIE || ToolChain.isPICDefault();
3272 // The Darwin default to use PIC does not apply when using -static.
3274 PIE = PIC = false;
3275 bool IsPICLevelTwo = PIC;
3280 // Android-specific defaults for PIC/PIE
3292 PIC = true; // "-fpic"
3297 PIC = true; // "-fPIC"
3328 // The last argument relating to either PIC or PIE wins, and no
3330 // '-fno-...' arguments, both PIC and PIE are disabled. Any PIE
3331 // option implicitly enables PIC at the same level.
3336 // Check whether the tool chain trumps the PIC-ness decision. If the PIC-ness
3337 // is forced, then neither PIC nor PIE flags will have no effect.
3344 PIC =
3349 PIE = PIC = false;
3354 PIC = true;
3363 // Introduce a Darwin and PS4-specific hack. If the default is PIC, but the
3364 // PIC level would've been set to level 1, force it back to level 2 PIC
3366 if (PIC && (ToolChain.getTriple().isOSDarwin() || Triple.isPS4CPU()))
3369 // This kernel flags are a trump-card: they will disable PIC/PIE
3373 PIC = PIE = false;
3382 // FIXME: Warn when this flag trumps some other PIC or PIE flag.
3384 // Only a forced PIC mode can cause the actual compile to have PIC defines
3387 PIC = ToolChain.isPICDefault() && ToolChain.isPICDefaultForced();
3389 return std::make_tuple(llvm::Reloc::DynamicNoPIC, PIC ? 2 : 0, false);
3392 if (PIC)