[llvm-commits] CVS: llvm/lib/VMCore/Module.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 22 13:03:02 PDT 2003


Changes in directory llvm/lib/VMCore:

Module.cpp updated: 1.34 -> 1.35

---
Log message:

Add support for tracking whether a module is 64/32 bit and big/little endian
Also add a moduleID field which can be used for diagnostics



---
Diffs of the changes:

Index: llvm/lib/VMCore/Module.cpp
diff -u llvm/lib/VMCore/Module.cpp:1.34 llvm/lib/VMCore/Module.cpp:1.35
--- llvm/lib/VMCore/Module.cpp:1.34	Wed Apr 16 15:28:45 2003
+++ llvm/lib/VMCore/Module.cpp	Tue Apr 22 13:02:04 2003
@@ -52,7 +52,8 @@
 };
 
 
-Module::Module() {
+Module::Module(const std::string &MID)
+  : ModuleID(MID), Endian(BigEndian), PtrSize(Pointer64) {
   FunctionList.setItemParent(this);
   FunctionList.setParent(this);
   GlobalList.setItemParent(this);





More information about the llvm-commits mailing list