Add a comment to explain how the decision to pass feature "+long-calls" is made.

llvm-svn: 241568
This commit is contained in:
Akira Hatanaka 2015-07-07 08:28:42 +00:00
parent b612902faa
commit c269482af3
1 changed files with 3 additions and 0 deletions

View File

@ -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))