summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-20 21:56:24 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-20 21:56:24 +0000
commit64c7af89008c5c38e92c963ffe1d0de7f6526dcc (patch)
tree23fb39554d2c29a0e0edc8f57b5689cd75dc0da2 /include
parent3429c7571e87ca6070ceb1b44b1f367ce23c99f9 (diff)
downloadllvm-64c7af89008c5c38e92c963ffe1d0de7f6526dcc.tar.gz
llvm-64c7af89008c5c38e92c963ffe1d0de7f6526dcc.tar.bz2
llvm-64c7af89008c5c38e92c963ffe1d0de7f6526dcc.tar.xz
If we discover all of the named structs in a module, then don't bother to
process any more Values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index b9c98814f1..8c50098dce 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -309,6 +309,9 @@ public:
/// is none by that name.
StructType *getTypeByName(StringRef Name) const;
+ /// getNumNamedStructTypes - Return the number of named struct types.
+ unsigned getNumNamedStructTypes() const;
+
/// @}
/// @name Function Accessors
/// @{