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

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 18 14:23:04 PDT 2003


Changes in directory llvm/lib/Bytecode/Reader:

ReadConst.cpp updated: 1.46 -> 1.47
ReaderInternals.h updated: 1.37 -> 1.38

---
Log message:

Detemplatize the PATypeHandle class, which was only really instantiated on 'Type'.



---
Diffs of the changes:

Index: llvm/lib/Bytecode/Reader/ReadConst.cpp
diff -u llvm/lib/Bytecode/Reader/ReadConst.cpp:1.46 llvm/lib/Bytecode/Reader/ReadConst.cpp:1.47
--- llvm/lib/Bytecode/Reader/ReadConst.cpp:1.46	Thu May 22 13:08:30 2003
+++ llvm/lib/Bytecode/Reader/ReadConst.cpp	Wed Jun 18 14:22:30 2003
@@ -139,7 +139,7 @@
 
   // Insert a bunch of opaque types to be resolved later...
   for (unsigned i = 0; i < NumEntries; ++i)
-    Tab.push_back(PATypeHandle<Type>(OpaqueType::get(), this));
+    Tab.push_back(PATypeHandle(OpaqueType::get(), this));
 
   // Loop through reading all of the types.  Forward types will make use of the
   // opaque types just inserted.


Index: llvm/lib/Bytecode/Reader/ReaderInternals.h
diff -u llvm/lib/Bytecode/Reader/ReaderInternals.h:1.37 llvm/lib/Bytecode/Reader/ReaderInternals.h:1.38
--- llvm/lib/Bytecode/Reader/ReaderInternals.h:1.37	Thu May 22 13:26:48 2003
+++ llvm/lib/Bytecode/Reader/ReaderInternals.h	Wed Jun 18 14:22:30 2003
@@ -104,7 +104,7 @@
   // TypesLoaded - This vector mirrors the Values[TypeTyID] plane.  It is used
   // to deal with forward references to types.
   //
-  typedef std::vector<PATypeHandle<Type> > TypeValuesListTy;
+  typedef std::vector<PATypeHandle> TypeValuesListTy;
   TypeValuesListTy ModuleTypeValues;
   TypeValuesListTy FunctionTypeValues;
 





More information about the llvm-commits mailing list