diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-06 18:50:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-06 18:50:26 +0000 |
commit | 0701a2f70df66134ead84d4fe86b20b8f28c4fc3 (patch) | |
tree | 2b6a5a67e1c569a95a73910325c0dd21c629c42d /include/llvm/LinkTimeOptimizer.h | |
parent | 3fc488d0ce9477834229064571c1709d7435f924 (diff) | |
download | llvm-0701a2f70df66134ead84d4fe86b20b8f28c4fc3.tar.gz llvm-0701a2f70df66134ead84d4fe86b20b8f28c4fc3.tar.bz2 llvm-0701a2f70df66134ead84d4fe86b20b8f28c4fc3.tar.xz |
Keep track of all modules crated using a name to module map.
Add private member function getMoudle().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LinkTimeOptimizer.h')
-rw-r--r-- | include/llvm/LinkTimeOptimizer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/LinkTimeOptimizer.h b/include/llvm/LinkTimeOptimizer.h index d20d21e4c0..76a7af66da 100644 --- a/include/llvm/LinkTimeOptimizer.h +++ b/include/llvm/LinkTimeOptimizer.h @@ -83,6 +83,8 @@ namespace llvm { public: typedef hash_map<const char*, LLVMSymbol*, hash<const char*>, string_compare> NameToSymbolMap; + typedef hash_map<const char*, Module*, hash<const char*>, + string_compare> NameToModuleMap; enum LTOStatus readLLVMObjectFile(const std::string &InputFilename, NameToSymbolMap &symbols, @@ -92,8 +94,12 @@ namespace llvm { std::string &targetTriple); private: + Module *getModule (const std::string &InputFilename); + + private: std::vector<Module *> modules; NameToSymbolMap allSymbols; + NameToModuleMap allModules; }; } // End llvm namespace |