diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-21 20:41:12 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-21 20:41:12 +0000 |
commit | b586c08d53cb9364e0f8e296288a7770304f6d59 (patch) | |
tree | 3358354542d8b5f3197dcc5c25840df6530dcd81 /include/llvm/Bytecode | |
parent | e6df25cbcde03b9604e7b5a1b37f411256d27823 (diff) | |
download | external_llvm-b586c08d53cb9364e0f8e296288a7770304f6d59.zip external_llvm-b586c08d53cb9364e0f8e296288a7770304f6d59.tar.gz external_llvm-b586c08d53cb9364e0f8e296288a7770304f6d59.tar.bz2 |
Add new methods:
- get the total number of types in the global type list
- handle dependent libraries
- handle target triple
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bytecode')
-rw-r--r-- | include/llvm/Bytecode/BytecodeHandler.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/Bytecode/BytecodeHandler.h b/include/llvm/Bytecode/BytecodeHandler.h index 5a022a0..67c2097 100644 --- a/include/llvm/Bytecode/BytecodeHandler.h +++ b/include/llvm/Bytecode/BytecodeHandler.h @@ -116,6 +116,14 @@ public: 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 @@ public: /// 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() {} |