Parse kernel, vertex, and fragment function attributes. Metadata is not yet being generated.

This is part of <rdar://problem/14951602> AGP5 bring up: Parse AGP5 kernel function attributes.



Swift SVN r8670
This commit is contained in:
John Garvin
2013-09-25 22:16:57 +00:00
parent cbfe3710f6
commit 4a8ac0d752
10 changed files with 174 additions and 6 deletions

View File

@@ -123,6 +123,14 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
case OPT_link_library:
addLinkLibrary(InputArg->getValue(), LibraryKind::Library);
break;
case OPT_std_EQ:
if (strcmp(InputArg->getValue(), "agp10") == 0)
LangOpts.Axle = true;
else
Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value,
InputArg->getSpelling(), InputArg->getValue());
break;
}
}