[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 25 18:47:01 PDT 2002


Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.22 -> 1.23

---
Log message:

Convert TargetData to be an ImmutablePass


---
Diffs of the changes:

Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.22 llvm/lib/Target/TargetData.cpp:1.23
--- llvm/lib/Target/TargetData.cpp:1.22	Tue Sep 10 20:20:05 2002
+++ llvm/lib/Target/TargetData.cpp	Wed Sep 25 18:46:55 2002
@@ -14,6 +14,13 @@
 #include "llvm/DerivedTypes.h"
 #include "llvm/Constants.h"
 
+// Handle the Pass registration stuff neccesary to use TargetData's.
+namespace {
+  // Register the default SparcV9 implementation...
+  RegisterPass<TargetData> X("targetdata", "Target Data Layout");
+}
+
+
 static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
 			       uint64_t &Size, unsigned char &Alignment);
 





More information about the llvm-commits mailing list