aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-11 17:24:05 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-11 17:24:05 +0000
commit66906518ed5773536f80e125f3896e66786316e5 (patch)
tree1b354950ddeebaf99bfbc68ce17f5a3f010557af /lib/Bytecode
parent1d9349a78378d2f08bc02a8e2cab6748ef47d28b (diff)
- 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h
index 79dbc519e1..89ab0a59b9 100644
--- a/lib/Bytecode/Reader/Reader.h
+++ b/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);