Debian Codegraph @

clang/lib/CIR/CodeGen/CIRGenDeclCXX.cpp

raw
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 // This contains code dealing with code generation of C++ declarations
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "CIRGenModule.h"
14 #include "clang/AST/Attr.h"
15 #include "clang/Basic/LangOptions.h"
16
17 using namespace clang;
18 using namespace clang::CIRGen;
19
20 void CIRGenModule::emitCXXGlobalVarDeclInitFunc(const VarDecl *vd,
21 cir::GlobalOp addr,
22 bool performInit) {
23 assert(!cir::MissingFeatures::cudaSupport());
24
25 assert(!cir::MissingFeatures::deferredCXXGlobalInit());
26
27 emitCXXGlobalVarDeclInit(vd, addr, performInit);
28 }