From fec6850f902d9ffd84fd55dc75e830e4feda2c78 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Sep 2002 23:46:56 +0000 Subject: [PATCH] Convert TargetData to be an ImmutablePass llvm-svn: 3928 --- llvm/include/llvm/Target/TargetData.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Target/TargetData.h b/llvm/include/llvm/Target/TargetData.h index 8e8fea4cd7b2..e6eaf503a9c4 100644 --- a/llvm/include/llvm/Target/TargetData.h +++ b/llvm/include/llvm/Target/TargetData.h @@ -14,6 +14,7 @@ #define LLVM_TARGET_TARGETDATA_H #include "llvm/Annotation.h" +#include "llvm/Pass.h" #include "Support/DataTypes.h" #include class Value; @@ -21,7 +22,7 @@ class Type; 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 @@ class TargetData { 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,