mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user