diff options
| author | Pirama Arumuga Nainar <pirama@google.com> | 2016-06-09 21:57:40 +0000 |
|---|---|---|
| committer | Pirama Arumuga Nainar <pirama@google.com> | 2016-06-09 21:57:40 +0000 |
| commit | aac7315e5b440de19d2af7b51e5639980b0356f8 (patch) | |
| tree | 2ae27dbf87728db3d557db92de415534565f171f /clang/lib | |
| parent | 5846d08a2ccb5277db8645a16436bf960af45219 (diff) | |
| download | bcm5719-llvm-aac7315e5b440de19d2af7b51e5639980b0356f8.tar.gz bcm5719-llvm-aac7315e5b440de19d2af7b51e5639980b0356f8.zip | |
Add a RenderScript language type
Summary:
Add RenderScript language type and associate it with ".rs" extensions.
Test that the driver passes "-x renderscript" to the frontend for ".rs"
files.
(Also add '.rs' to the list of suffixes tested by lit).
Reviewers: rsmith
Subscribers: cfe-commits, srhines
Differential Revision: http://reviews.llvm.org/D21199
llvm-svn: 272317
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/Types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp index ecad59e0ca6..f8e1e40dc6b 100644 --- a/clang/lib/Driver/Types.cpp +++ b/clang/lib/Driver/Types.cpp @@ -204,6 +204,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) { .Case("pcm", TY_ModuleFile) .Case("pch", TY_PCH) .Case("gch", TY_PCH) + .Case("rs", TY_RenderScript) .Default(TY_INVALID); } |

