[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.h

LLVM llvm at cs.uiuc.edu
Sun Jul 11 12:25:02 PDT 2004


Changes in directory llvm/lib/Bytecode/Reader:

Reader.h updated: 1.5 -> 1.6

---
Log message:

- 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.


---
Diffs of the changes:  (+8 -2)

Index: llvm/lib/Bytecode/Reader/Reader.h
diff -u llvm/lib/Bytecode/Reader/Reader.h:1.5 llvm/lib/Bytecode/Reader/Reader.h:1.6
--- llvm/lib/Bytecode/Reader/Reader.h:1.5	Fri Jul  9 17:21:33 2004
+++ llvm/lib/Bytecode/Reader/Reader.h	Sun Jul 11 12:24:05 2004
@@ -223,10 +223,10 @@
   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);
@@ -438,6 +438,12 @@
 
   /// @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);





More information about the llvm-commits mailing list