From a41049b43eb17a6b35d9a0483388df2a621f9ebb Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Tue, 29 Apr 2014 12:07:34 +0000 Subject: [PATCH] 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 --- lib/Driver/Tools.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.50.1