diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-20 21:56:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-20 21:56:24 +0000 |
commit | 64c7af89008c5c38e92c963ffe1d0de7f6526dcc (patch) | |
tree | 23fb39554d2c29a0e0edc8f57b5689cd75dc0da2 /include/llvm | |
parent | 3429c7571e87ca6070ceb1b44b1f367ce23c99f9 (diff) |
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/llvm')
-rw-r--r-- | include/llvm/Module.h | 3 |
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 /// @{ |