@@ -42,7 +42,7 @@ class OpenCLOptions {
42
42
43
43
// Is supported as either an extension or an (optional) core feature for
44
44
// OpenCL version \p CLVer.
45
- bool isSupported (llvm::StringRef Ext, LangOptions LO) const {
45
+ bool isSupported (llvm::StringRef Ext, const LangOptions & LO) const {
46
46
// In C++ mode all extensions should work at least as in v2.0.
47
47
auto CLVer = LO.OpenCLCPlusPlus ? 200 : LO.OpenCLVersion ;
48
48
auto I = OptMap.find (Ext)->getValue ();
@@ -51,7 +51,7 @@ class OpenCLOptions {
51
51
52
52
// Is supported (optional) OpenCL core features for OpenCL version \p CLVer.
53
53
// For supported extension, return false.
54
- bool isSupportedCore (llvm::StringRef Ext, LangOptions LO) const {
54
+ bool isSupportedCore (llvm::StringRef Ext, const LangOptions & LO) const {
55
55
// In C++ mode all extensions should work at least as in v2.0.
56
56
auto CLVer = LO.OpenCLCPlusPlus ? 200 : LO.OpenCLVersion ;
57
57
auto I = OptMap.find (Ext)->getValue ();
@@ -60,7 +60,7 @@ class OpenCLOptions {
60
60
61
61
// Is supported OpenCL extension for OpenCL version \p CLVer.
62
62
// For supported (optional) core feature, return false.
63
- bool isSupportedExtension (llvm::StringRef Ext, LangOptions LO) const {
63
+ bool isSupportedExtension (llvm::StringRef Ext, const LangOptions & LO) const {
64
64
// In C++ mode all extensions should work at least as in v2.0.
65
65
auto CLVer = LO.OpenCLCPlusPlus ? 200 : LO.OpenCLVersion ;
66
66
auto I = OptMap.find (Ext)->getValue ();
0 commit comments