clang 24.0.0git
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
16LLVM_REGISTER_LIBRARY_OPTIONS(clang::CodeGen::CodeGenCLOptions)
17
18const clang::CodeGen::CodeGenCLOptions &
19clang::CodeGen::getCodeGenCLOptions(const llvm::LLVMContext &Ctx) {
20 return Ctx.getLibraryOptions().get<CodeGenCLOptions>();
21}
const CodeGenCLOptions & getCodeGenCLOptions(const llvm::LLVMContext &Ctx)