]> granicus.if.org Git - clang/commitdiff
Add comments regarding isPIEDefault usage for r207520
authorAlexey Volkov <avolkov.intel@gmail.com>
Tue, 29 Apr 2014 12:07:34 +0000 (12:07 +0000)
committerAlexey Volkov <avolkov.intel@gmail.com>
Tue, 29 Apr 2014 12:07:34 +0000 (12:07 +0000)
Differential Revision: http://reviews.llvm.org/D2668

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207521 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index bda4edfd07c947e3a5a0ff2b4e761d98838d9799..36951666e5ba9af96c82527ef5e8affed21fa419 100644 (file)
@@ -6920,6 +6920,8 @@ void gnutools::Link::ConstructJob(Compilation &C, const JobAction &JA,
     !Args.hasArg(options::OPT_static) &&
     (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault() ||
      // On Android every code is PIC so every executable is PIE
+     // Cannot use isPIEDefault here since otherwise
+     // PIE only logic will be enabled during compilation
      isAndroid);
 
   ArgStringList CmdArgs;