From: Alexey Volkov Date: Tue, 29 Apr 2014 12:07:34 +0000 (+0000) Subject: Add comments regarding isPIEDefault usage for r207520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a41049b43eb17a6b35d9a0483388df2a621f9ebb;p=clang Add comments regarding isPIEDefault usage for r207520 Differential Revision: http://reviews.llvm.org/D2668 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207521 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index bda4edfd07..36951666e5 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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;