[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

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


Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.9 -> 1.10

---
Log message:


Convert TargetData to be an ImmutablePass


---
Diffs of the changes:

Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.9 llvm/include/llvm/Target/TargetData.h:1.10
--- llvm/include/llvm/Target/TargetData.h:1.9	Mon Sep 23 19:08:01 2002
+++ llvm/include/llvm/Target/TargetData.h	Wed Sep 25 18:46:56 2002
@@ -14,6 +14,7 @@
 #define LLVM_TARGET_TARGETDATA_H
 
 #include "llvm/Annotation.h"
+#include "llvm/Pass.h"
 #include "Support/DataTypes.h"
 #include <vector>
 class Value;
@@ -21,7 +22,7 @@
 class StructType;
 class StructLayout;
 
-class TargetData {
+class TargetData : public ImmutablePass {
   unsigned char ByteAlignment;         // Defaults to 1 bytes
   unsigned char ShortAlignment;        // Defaults to 2 bytes
   unsigned char IntAlignment;          // Defaults to 4 bytes
@@ -35,7 +36,7 @@
  
   static Annotation *TypeAnFactory(AnnotationID, const Annotable *, void *);
 public:
-  TargetData(const std::string &TargetName,
+  TargetData(const std::string &TargetName = "SparcV9",
              unsigned char IntRegSize = 8,
              unsigned char PtrSize = 8,
 	     unsigned char PtrAl = 8, unsigned char DoubleAl = 8,





More information about the llvm-commits mailing list