diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2016-06-09 23:34:20 +0000 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2016-06-09 23:34:20 +0000 |
commit | 8b788d013c7fb07ac96ac5f2f0a9a98141d0909b (patch) | |
tree | bdf317a30de2582cdce90aeec58cbb6a2a0718b6 /clang/lib/Frontend/FrontendActions.cpp | |
parent | b451f1bdf65d3bcd9fe60b21d26b003b18bf4601 (diff) | |
download | llvm-8b788d013c7fb07ac96ac5f2f0a9a98141d0909b.zip llvm-8b788d013c7fb07ac96ac5f2f0a9a98141d0909b.tar.gz llvm-8b788d013c7fb07ac96ac5f2f0a9a98141d0909b.tar.bz2 |
RenderScript support in the Frontend
Summary:
Create a new Frontend LangOpt to specify the renderscript language. It
is enabled by the "-x renderscript" option from the driver.
Add a "kernel" function attribute only for RenderScript (an "ignored
attribute" warning is generated otherwise).
Make the NativeHalfType and NativeHalfArgsAndReturns LangOpts be implied
by the RenderScript LangOpt.
Reviewers: rsmith
Subscribers: cfe-commits, srhines
Differential Revision: http://reviews.llvm.org/D21198
llvm-svn: 272342
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 21dd37d..dd5479c 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -735,6 +735,7 @@ void PrintPreambleAction::ExecuteAction() { case IK_PreprocessedObjCXX: case IK_AST: case IK_LLVM_IR: + case IK_RenderScript: // We can't do anything with these. return; } |