diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-25 23:46:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-25 23:46:56 +0000 |
commit | 2da7afb963dd9760e6feb9ab87ebca963d2b964e (patch) | |
tree | 39258059006b0f6100ed53c462b95cbe1cd0e39a | |
parent | aa31ad016a5f0cb63bae2361770dfe303f45f729 (diff) |
Convert TargetData to be an ImmutablePass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3928 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetData.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 8e8fea4cd7..e6eaf503a9 100644 --- a/include/llvm/Target/TargetData.h +++ b/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 <vector> 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, |