Mercurial > hg > CbC > CbC_llvm
comparison clang/lib/CodeGen/ConstantEmitter.h @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
64 | 64 |
65 /// Is the current emission context abstract? | 65 /// Is the current emission context abstract? |
66 bool isAbstract() const { | 66 bool isAbstract() const { |
67 return Abstract; | 67 return Abstract; |
68 } | 68 } |
69 | |
70 bool isInConstantContext() const { return InConstantContext; } | |
71 void setInConstantContext(bool var) { InConstantContext = var; } | |
69 | 72 |
70 /// Try to emit the initiaizer of the given declaration as an abstract | 73 /// Try to emit the initiaizer of the given declaration as an abstract |
71 /// constant. If this succeeds, the emission must be finalized. | 74 /// constant. If this succeeds, the emission must be finalized. |
72 llvm::Constant *tryEmitForInitializer(const VarDecl &D); | 75 llvm::Constant *tryEmitForInitializer(const VarDecl &D); |
73 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace, | 76 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace, |