summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/OpenCLOptions.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-16 19:49:14 +0000
committerZachary Turner <zturner@google.com>2016-12-16 19:49:14 +0000
commit8d0b6ce3c79c6cf4de353d95008147be4110120c (patch)
tree549eb00179b05ac5aaf8b501c5a1725dae53ba19 /include/clang/Basic/OpenCLOptions.h
parent5fa64845ee291b3344c849e4c11c0b3b865b0785 (diff)
Fix clang build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/OpenCLOptions.h')
-rw-r--r--include/clang/Basic/OpenCLOptions.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/clang/Basic/OpenCLOptions.h b/include/clang/Basic/OpenCLOptions.h
index 9fb4dbb7ba..a51494fa2e 100644
--- a/include/clang/Basic/OpenCLOptions.h
+++ b/include/clang/Basic/OpenCLOptions.h
@@ -32,24 +32,24 @@ class OpenCLOptions {
};
llvm::StringMap<Info> OptMap;
public:
- bool isKnown(StringRef Ext) const {
+ bool isKnown(llvm::StringRef Ext) const {
return OptMap.find(Ext) != OptMap.end();
}
- bool isEnabled(StringRef Ext) const {
+ bool isEnabled(llvm::StringRef Ext) const {
return OptMap.find(Ext)->second.Enabled;
}
// Is supported as either an extension or an (optional) core feature for
// OpenCL version \p CLVer.
- bool isSupported(StringRef Ext, unsigned CLVer) const {
+ bool isSupported(llvm::StringRef Ext, unsigned CLVer) const {
auto I = OptMap.find(Ext)->getValue();
return I.Supported && I.Avail <= CLVer;
}
// Is supported (optional) OpenCL core features for OpenCL version \p CLVer.
// For supported extension, return false.
- bool isSupportedCore(StringRef Ext, unsigned CLVer) const {
+ bool isSupportedCore(llvm::StringRef Ext, unsigned CLVer) const {
auto I = OptMap.find(Ext)->getValue();
return I.Supported && I.Avail <= CLVer &&
I.Core != ~0U && CLVer >= I.Core;
@@ -57,13 +57,13 @@ public:
// Is supported OpenCL extension for OpenCL version \p CLVer.
// For supported (optional) core feature, return false.
- bool isSupportedExtension(StringRef Ext, unsigned CLVer) const {
+ bool isSupportedExtension(llvm::StringRef Ext, unsigned CLVer) const {
auto I = OptMap.find(Ext)->getValue();
return I.Supported && I.Avail <= CLVer &&
(I.Core == ~0U || CLVer < I.Core);
}
- void enable(StringRef Ext, bool V = true) {
+ void enable(llvm::StringRef Ext, bool V = true) {
OptMap[Ext].Enabled = V;
}
@@ -71,7 +71,7 @@ public:
/// \param Ext name of the extension optionally prefixed with
/// '+' or '-'
/// \param Enable used when \p Ext is not prefixed by '+' or '-'
- void support(StringRef Ext, bool V = true) {
+ void support(llvm::StringRef Ext, bool V = true) {
assert(!Ext.empty() && "Extension is empty.");
switch (Ext[0]) {