[llvm-commits] CVS: llvm/include/llvm/Bytecode/BytecodeHandler.h

Reid Spencer reid at x10sys.com
Sat Aug 21 13:41:23 PDT 2004



Changes in directory llvm/include/llvm/Bytecode:

BytecodeHandler.h updated: 1.6 -> 1.7
---
Log message:

Add new methods:
- get the total number of types in the global type list
- handle dependent libraries
- handle target triple


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

Index: llvm/include/llvm/Bytecode/BytecodeHandler.h
diff -u llvm/include/llvm/Bytecode/BytecodeHandler.h:1.6 llvm/include/llvm/Bytecode/BytecodeHandler.h:1.7
--- llvm/include/llvm/Bytecode/BytecodeHandler.h:1.6	Fri Aug 20 01:00:57 2004
+++ llvm/include/llvm/Bytecode/BytecodeHandler.h	Sat Aug 21 15:41:12 2004
@@ -116,6 +116,14 @@
     unsigned initSlot         ///< Slot number of GV's initializer (0 if none)
   ) {}
 
+  /// This method is called when a type list is recognized. It simply
+  /// provides the number of types that the list contains. The handler
+  /// should expect that number of calls to handleType.
+  /// @brief Handle a type
+  virtual void handleTypeList( 
+    unsigned numEntries ///< The number of entries in the type list
+  ) {}
+
   /// This method is called when a new type is recognized. The type is 
   /// converted from the bytecode and passed to this method.
   /// @brief Handle a type
@@ -134,6 +142,14 @@
   /// done towards the end of the module globals block
   virtual void handleGlobalInitializer(GlobalVariable*, Constant* ) {}
 
+  /// This method is called for each dependent library name found
+  /// in the module globals block.
+  virtual void handleDependentLibrary(const std::string& libName) {}
+
+  /// This method is called if the module globals has a non-empty target 
+  /// triple
+  virtual void handleTargetTriple(const std::string& triple) {}
+
   /// This method is called at the end of the module globals block.
   /// @brief Handle end of module globals block.
   virtual void handleModuleGlobalsEnd() {}






More information about the llvm-commits mailing list