[OpenCL] Allow -std={cl|CL}{|1.1|1.2|2.0} in driver
Fix a regression which forbids using -std=cl|CL1.1|CL1.2|CL2.0 in driver. Allow -std and -cl-std={cl|CL}{|1.1|1.2|2.0}. Differential Revision: http://reviews.llvm.org/D20630 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273015 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/LangStandards.def 18 additions, 3 deletionsinclude/clang/Frontend/LangStandards.def
- lib/Frontend/CompilerInvocation.cpp 17 additions, 7 deletionslib/Frontend/CompilerInvocation.cpp
- test/Driver/opencl.cl 15 additions, 0 deletionstest/Driver/opencl.cl
- test/Frontend/stdlang.c 4 additions, 0 deletionstest/Frontend/stdlang.c
Loading
Please register or sign in to comment