[llvm] doc: [llvm][llvm-c][Core.h]: correct LLVMGetModuleFlag document (PR #99801)
Meow King via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 00:00:32 PDT 2024
https://github.com/Ziqi-Yang created https://github.com/llvm/llvm-project/pull/99801
None
>From 46934a31901307ad67f5cdc84b0c13bfeea9eb51 Mon Sep 17 00:00:00 2001
From: Meow King <mr.ziqiyang at gmail.com>
Date: Sun, 21 Jul 2024 14:59:51 +0800
Subject: [PATCH] doc: [llvm][llvm-c][Core.h]: correct LLVMGetModuleFlag
document
---
llvm/include/llvm-c/Core.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 223d8efe57daa..9c372a2d3ad9c 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -907,8 +907,8 @@ LLVMMetadataRef LLVMModuleFlagEntriesGetMetadata(LLVMModuleFlagEntry *Entries,
unsigned Index);
/**
- * Add a module-level flag to the module-level flags metadata if it doesn't
- * already exist.
+ * Return the corresponding value if Key appears in module flags, otherwise
+ * return null.
*
* @see Module::getModuleFlag()
*/
More information about the llvm-commits
mailing list