aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 04:48:40 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 04:48:40 +0000
commit68e5ed8dbe724bd3380a044a522d4fd3effe2dd0 (patch)
tree26210e94466538b3b91140e5ae2c1d51e0475855 /include/llvm/Module.h
parentb408b1255646f31895dcbf099184e087bfa1ca39 (diff)
downloadexternal_llvm-68e5ed8dbe724bd3380a044a522d4fd3effe2dd0.zip
external_llvm-68e5ed8dbe724bd3380a044a522d4fd3effe2dd0.tar.gz
external_llvm-68e5ed8dbe724bd3380a044a522d4fd3effe2dd0.tar.bz2
Add new addTypeName method to Module class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index a2a8e50..bc7f564 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -63,6 +63,12 @@ public:
//
Function *getFunction(const std::string &Name, const FunctionType *Ty);
+ // addTypeName - Insert an entry in the symbol table mapping Str to Type. If
+ // there is already an entry for this name, true is returned and the symbol
+ // table is not modified.
+ //
+ bool addTypeName(const std::string &Name, const Type *Ty);
+
// Get the underlying elements of the Module...
inline const GlobalListType &getGlobalList() const { return GlobalList; }
inline GlobalListType &getGlobalList() { return GlobalList; }