aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/IR/Module.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-08-21 21:27:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-08-21 21:27:36 +0000
commitd545c2ce5ad1891282e8818b47ffe557c76a86b4 (patch)
tree98c4a1af94aa0ecc49fb4192ac42564bbe3dc3fd /llvm/include/llvm/IR/Module.h
parent9cb5bdb8b26e2207293f0fb56701c4a0ff64a47d (diff)
Diffstat (limited to 'llvm/include/llvm/IR/Module.h')
-rw-r--r--llvm/include/llvm/IR/Module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index 81e29d9b86e8..97aea5aedf22 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/include/llvm/IR/Module.h
@@ -324,6 +324,9 @@ public:
/// name is not found.
GlobalValue *getNamedValue(StringRef Name) const;
+ /// Return the number of global values in the module.
+ unsigned getNumNamedValues() const;
+
/// Return a unique non-zero ID for the specified metadata kind. This ID is
/// uniqued across modules in the current LLVMContext.
unsigned getMDKindID(StringRef Name) const;