aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp')
-rw-r--r--clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
index 594c79a..de20e74 100644
--- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
@@ -462,9 +462,10 @@ static Error runAOTCompile(StringRef InputFile, StringRef OutputFile,
// TODO: Consider using LLVM-IR metadata to identify globals of interest
bool isKernel(const Function &F) {
- const CallingConv::ID CC = F.getCallingConv();
- return CC == CallingConv::SPIR_KERNEL || CC == CallingConv::AMDGPU_KERNEL ||
- CC == CallingConv::PTX_Kernel;
+ const llvm::CallingConv::ID CC = F.getCallingConv();
+ return CC == llvm::CallingConv::SPIR_KERNEL ||
+ CC == llvm::CallingConv::AMDGPU_KERNEL ||
+ CC == llvm::CallingConv::PTX_Kernel;
}
/// Performs the following steps: