Skip to content

Expose the missing flag bit FlagAllCallsDescribed#188477

Closed
dingxiangfei2009 wants to merge 1 commit intollvm:mainfrom
dingxiangfei2009:add-missing-all-call-described-flag
Closed

Expose the missing flag bit FlagAllCallsDescribed#188477
dingxiangfei2009 wants to merge 1 commit intollvm:mainfrom
dingxiangfei2009:add-missing-all-call-described-flag

Conversation

@dingxiangfei2009
Copy link
Copy Markdown
Contributor

@dingxiangfei2009 dingxiangfei2009 commented Mar 25, 2026

It appears that two headers did not sync up. Now the flag bit should also be available on the C side.

@llvmbot
Copy link
Copy Markdown
Member

llvmbot commented Mar 25, 2026

@llvm/pr-subscribers-debuginfo

Author: wieDasDing (dingxiangfei2009)

Changes

It appears that two headers did not sync up. Now the flag bit should also be available on the C side.


Full diff: https://github.com/llvm/llvm-project/pull/188477.diff

1 Files Affected:

  • (modified) llvm/include/llvm-c/DebugInfo.h (+8-6)
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h
index 70da3a61a46d8..7d0b80de2cd60 100644
--- a/llvm/include/llvm-c/DebugInfo.h
+++ b/llvm/include/llvm-c/DebugInfo.h
@@ -65,9 +65,10 @@ typedef enum {
   LLVMDIFlagNonTrivial = 1 << 26,
   LLVMDIFlagBigEndian = 1 << 27,
   LLVMDIFlagLittleEndian = 1 << 28,
+  LLVMDIFlagAllCallsDescribed = 1 << 29,
   LLVMDIFlagIndirectVirtualBase = (1 << 2) | (1 << 5),
-  LLVMDIFlagAccessibility = LLVMDIFlagPrivate | LLVMDIFlagProtected |
-                            LLVMDIFlagPublic,
+  LLVMDIFlagAccessibility =
+      LLVMDIFlagPrivate | LLVMDIFlagProtected | LLVMDIFlagPublic,
   LLVMDIFlagPtrToMemberRep = LLVMDIFlagSingleInheritance |
                              LLVMDIFlagMultipleInheritance |
                              LLVMDIFlagVirtualInheritance
@@ -151,9 +152,9 @@ typedef enum {
  * The amount of debug information to emit.
  */
 typedef enum {
-    LLVMDWARFEmissionNone = 0,
-    LLVMDWARFEmissionFull,
-    LLVMDWARFEmissionLineTablesOnly
+  LLVMDWARFEmissionNone = 0,
+  LLVMDWARFEmissionFull,
+  LLVMDWARFEmissionLineTablesOnly
 } LLVMDWARFEmissionKind;
 
 /**
@@ -1252,7 +1253,8 @@ LLVM_C_ABI LLVMMetadataRef
 LLVMDIGlobalVariableExpressionGetVariable(LLVMMetadataRef GVE);
 
 /**
- * Retrieves the \c DIExpression associated with this global variable expression.
+ * Retrieves the \c DIExpression associated with this global variable
+ * expression.
  * \param GVE    The global variable expression.
  *
  * @see llvm::DIGlobalVariableExpression::getExpression()

Copy link
Copy Markdown
Member

@phyBrackets phyBrackets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unrelated formatting.

@dingxiangfei2009
Copy link
Copy Markdown
Contributor Author

I will delegate to the PR #187907 that I wasn't aware of when authoring this PR. There the diff is cleaner. Thank you for taking a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants