r241568 - Add a comment to explain how the decision to pass feature "+long-calls" is made.
Akira Hatanaka
ahatanaka at apple.com
Tue Jul 7 01:28:42 PDT 2015
Author: ahatanak
Date: Tue Jul 7 03:28:42 2015
New Revision: 241568
URL: http://llvm.org/viewvc/llvm-project?rev=241568&view=rev
Log:
Add a comment to explain how the decision to pass feature "+long-calls" is made.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=241568&r1=241567&r2=241568&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Jul 7 03:28:42 2015
@@ -708,6 +708,9 @@ static void getARMTargetFeatures(const D
Features.insert(Features.begin(), "+v8.1a");
}
+ // Look for the last occurrence of -mlong-calls or -mno-long-calls. If
+ // neither options are specified, see if we are compiling for kernel/kext and
+ // decide whether to pass "+long-calls" based on the OS and its version.
if (Arg *A = Args.getLastArg(options::OPT_mlong_calls,
options::OPT_mno_long_calls)) {
if (A->getOption().matches(options::OPT_mlong_calls))
More information about the cfe-commits
mailing list