[llvm-commits] CVS: llvm/include/llvm/LinkTimeOptimizer.h

Devang Patel dpatel at apple.com
Tue Oct 24 11:41:22 PDT 2006



Changes in directory llvm/include/llvm:

LinkTimeOptimizer.h updated: 1.9 -> 1.10
---
Log message:

Instead of hard coding global prefix, use TargetAsmInfo.
Add LTO destructor.


---
Diffs of the changes:  (+12 -0)

 LinkTimeOptimizer.h |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/include/llvm/LinkTimeOptimizer.h
diff -u llvm/include/llvm/LinkTimeOptimizer.h:1.9 llvm/include/llvm/LinkTimeOptimizer.h:1.10
--- llvm/include/llvm/LinkTimeOptimizer.h:1.9	Mon Oct 23 18:12:26 2006
+++ llvm/include/llvm/LinkTimeOptimizer.h	Tue Oct 24 13:41:02 2006
@@ -24,6 +24,7 @@
 
   class Module;
   class GlobalValue;
+  class TargetMachine;
 
   enum LTOStatus {
     LTO_UNKNOWN,
@@ -114,13 +115,24 @@
     void getTargetTriple(const std::string &InputFilename, std::string &targetTriple);
     void removeModule (const std::string &InputFilename);
 
+    // Constructors and destructors
+    LTO() { 
+      /// TODO: Use Target info, it is available at this time.
+      Target = NULL; 
+    }
+    ~LTO();
+
   private:
     Module *getModule (const std::string &InputFilename);
+    enum LTOStatus optimize(Module *, std::ostream &, 
+                            std::vector<const char *> &);
+    void getTarget(Module *);
 
   private:
     std::vector<Module *> modules;
     NameToSymbolMap allSymbols;
     NameToModuleMap allModules;
+    TargetMachine *Target;
   };
 
 } // End llvm namespace






More information about the llvm-commits mailing list