diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-07-07 08:28:42 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-07-07 08:28:42 +0000 |
commit | c269482af35b2ee69bda14e430e15dfa4436df7d (patch) | |
tree | 73330197b2cfc7dcc5d6615015caab3d23db384b | |
parent | b612902faa53a01088a236e733cb0e8526c309aa (diff) | |
download | bcm5719-llvm-c269482af35b2ee69bda14e430e15dfa4436df7d.tar.gz bcm5719-llvm-c269482af35b2ee69bda14e430e15dfa4436df7d.zip |
Add a comment to explain how the decision to pass feature "+long-calls" is made.
llvm-svn: 241568
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 4aa4bf14641..058fdf574da 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -708,6 +708,9 @@ static void getARMTargetFeatures(const Driver &D, const llvm::Triple &Triple, 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)) |