brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · d1efed8 Raw
29 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8//9// This contains code dealing with code generation of C++ declarations10//11//===----------------------------------------------------------------------===//12 13#include "CIRGenModule.h"14#include "clang/AST/Attr.h"15#include "clang/Basic/LangOptions.h"16 17using namespace clang;18using namespace clang::CIRGen;19 20void 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}29