clang
24.0.0git
lib
CodeGen
CodeGenCLOptions.cpp
Go to the documentation of this file.
1
//===----------------------------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
CodeGenCLOptions.h
"
10
#include "llvm/IR/LLVMContext.h"
11
#include "llvm/Option/LibraryOptions.h"
12
13
#define OPTIONS_STRUCT_DEFS
14
#include "CodeGenCLOptions.inc"
15
16
LLVM_REGISTER_LIBRARY_OPTIONS(clang::CodeGen::CodeGenCLOptions)
17
18
const
clang::CodeGen::CodeGenCLOptions &
19
clang::CodeGen::getCodeGenCLOptions
(
const
llvm::LLVMContext &Ctx) {
20
return
Ctx.getLibraryOptions().get<CodeGenCLOptions>();
21
}
CodeGenCLOptions.h
clang::CodeGen::getCodeGenCLOptions
const CodeGenCLOptions & getCodeGenCLOptions(const llvm::LLVMContext &Ctx)
Definition
CodeGenCLOptions.cpp:19
Generated on
for clang by
1.14.0