diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-06-10 21:59:20 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-06-10 21:59:20 +0000 |
commit | ab5fce2299baa081686677b4f2a42badd5b6f853 (patch) | |
tree | 22e268fad0d31df74729fd6c45fcebbb19be71c8 /lib/Bytecode/Reader/Parser.h | |
parent | 23d46e70b11e3137bc46752ea6e177d9ebcbbe2a (diff) |
Make the parser deal with functions instead of just function types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Parser.h')
-rw-r--r-- | lib/Bytecode/Reader/Parser.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Bytecode/Reader/Parser.h b/lib/Bytecode/Reader/Parser.h index 08758cb5f2..7856fc5447 100644 --- a/lib/Bytecode/Reader/Parser.h +++ b/lib/Bytecode/Reader/Parser.h @@ -90,7 +90,7 @@ public: /// @see ParseAllFunctionBodies /// @see ParseBytecode /// @brief Parse the next function of specific type - void ParseNextFunction (Type* FType) ; + void ParseNextFunction (Function* Func) ; /// @} /// @name Parsing Units For Subclasses @@ -116,7 +116,7 @@ protected: void ParseFunctionLazily (); /// @brief Parse a function body - void ParseFunctionBody (const Type* FType); + void ParseFunctionBody (Function* Func); /// @brief Parse a compaction table void ParseCompactionTable (); @@ -205,7 +205,7 @@ private: // for each function in the module. When the function is loaded, this type is // used to instantiate the actual function object. - std::vector<const Type*> FunctionSignatureList; + std::vector<Function*> FunctionSignatureList; // Constant values are read in after global variables. Because of this, we // must defer setting the initializers on global variables until after module @@ -233,7 +233,7 @@ private: LazyFunctionInfo(const unsigned char *B = 0, const unsigned char *EB = 0) : Buf(B), EndBuf(EB) {} }; - typedef std::map<const Type*, LazyFunctionInfo> LazyFunctionMap; + typedef std::map<Function*, LazyFunctionInfo> LazyFunctionMap; LazyFunctionMap LazyFunctionLoadMap; private: @@ -394,7 +394,8 @@ public: /// This method is called when the function prototype for a function is /// encountered in the module globals block. virtual void handleFunctionDeclaration( - const Type* FuncType ///< The type of the function + Function* Func, + const FunctionType* FuncType ///< The type of the function ); /// This method is called at the end of the module globals block. @@ -458,13 +459,12 @@ public: /// @brief Handle the beginning of a function body virtual void handleFunctionBegin( - const Type* FType, - GlobalValue::LinkageTypes linkage + Function* Func, unsigned Size ); /// @brief Handle the end of a function body virtual void handleFunctionEnd( - const Type* FType + Function* Func ); /// @brief Handle the beginning of a basic block |