[clang] [clang][DebugInfo][NFC] Add createConstantValueExpression helper (PR #70674)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 09:19:32 PDT 2023


================
@@ -5935,3 +5918,28 @@ llvm::DINode::DIFlags CGDebugInfo::getCallSiteRelatedAttrs() const {
 
   return llvm::DINode::FlagAllCallsDescribed;
 }
+
+llvm::DIExpression *
+CGDebugInfo::createConstantValueExpression(clang::ValueDecl const *VD,
+                                           const APValue &Val) {
+  llvm::DIExpression *ValExpr = nullptr;
----------------
Michael137 wrote:

will do

https://github.com/llvm/llvm-project/pull/70674


More information about the cfe-commits mailing list