[llvm-commits] CVS: llvm/include/llvm/LinkTimeOptimizer.h
Devang Patel
dpatel at apple.com
Wed Sep 6 11:50:41 PDT 2006
Changes in directory llvm/include/llvm:
LinkTimeOptimizer.h updated: 1.5 -> 1.6
---
Log message:
Keep track of all modules crated using a name to module map.
Add private member function getMoudle().
---
Diffs of the changes: (+6 -0)
LinkTimeOptimizer.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/LinkTimeOptimizer.h
diff -u llvm/include/llvm/LinkTimeOptimizer.h:1.5 llvm/include/llvm/LinkTimeOptimizer.h:1.6
--- llvm/include/llvm/LinkTimeOptimizer.h:1.5 Tue Sep 5 19:28:22 2006
+++ llvm/include/llvm/LinkTimeOptimizer.h Wed Sep 6 13:50:26 2006
@@ -83,6 +83,8 @@
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 @@
std::string &targetTriple);
private:
+ Module *getModule (const std::string &InputFilename);
+
+ private:
std::vector<Module *> modules;
NameToSymbolMap allSymbols;
+ NameToModuleMap allModules;
};
} // End llvm namespace
More information about the llvm-commits
mailing list