diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-11 17:24:05 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-11 17:24:05 +0000 |
commit | db3bf19ad01e608971690c15f8bf76bd25c4bf0e (patch) | |
tree | 9b4e4971533787f6d25a1ea228985381db913a08 /llvm/lib/Bytecode/Reader/Reader.h | |
parent | cf5c6e4adb9843cd24e24d02fa98385f2a74676b (diff) | |
download | bcm5719-llvm-db3bf19ad01e608971690c15f8bf76bd25c4bf0e.tar.gz bcm5719-llvm-db3bf19ad01e608971690c15f8bf76bd25c4bf0e.zip |
- Rename two methods to give them more meaning
- Add read_float and read_double in preparation for a correct
implementation of bytecode floating point support.
llvm-svn: 14764
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h index 79dbc519e1e..89ab0a59b94 100644 --- a/llvm/lib/Bytecode/Reader/Reader.h +++ b/llvm/lib/Bytecode/Reader/Reader.h @@ -223,10 +223,10 @@ protected: Constant* ParseConstantValue(unsigned TypeID); /// @brief Parse a block of types constants - void ParseTypeConstants(TypeListTy &Tab, unsigned NumEntries); + void ParseTypes(TypeListTy &Tab, unsigned NumEntries); /// @brief Parse a single type constant - const Type *ParseTypeConstant(); + const Type *ParseType(); /// @brief Parse a string constants block void ParseStringConstants(unsigned NumEntries, ValueTable &Tab); @@ -439,6 +439,12 @@ private: /// @brief Read a string inline std::string read_str(); + /// @brief Read a float value + inline void read_float(float& FloatVal); + + /// @brief Read a double value + inline void read_double(double& DoubleVal); + /// @brief Read an arbitrary data chunk of fixed length inline void read_data(void *Ptr, void *End); |