diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 22:07:05 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 22:07:05 +0000 |
commit | 03d4a8a368a32e2f306d3fe1ec92a334c3855ce3 (patch) | |
tree | 325987f83f3d1f4dfd5dda3e55b69d5d7df63f28 /llvm/lib/Target/TargetData.cpp | |
parent | c95f42b9f8f004e619cc7f097cefce244d935c47 (diff) | |
download | bcm5719-llvm-03d4a8a368a32e2f306d3fe1ec92a334c3855ce3.tar.gz bcm5719-llvm-03d4a8a368a32e2f306d3fe1ec92a334c3855ce3.zip |
For PR1195:
PACKED_ALIGN -> VECTOR_ALIGN
llvm-svn: 34330
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 41bc78a9923..3f9da2bc090 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -184,8 +184,8 @@ void TargetData::init(const std::string &TargetDescription) { setAlignment(INTEGER_ALIGN, 4, 8, 64); // long setAlignment(FLOAT_ALIGN, 4, 4, 32); // float setAlignment(FLOAT_ALIGN, 8, 8, 64); // double - setAlignment(PACKED_ALIGN, 8, 8, 64); // v2i32 - setAlignment(PACKED_ALIGN, 16, 16, 128); // v16i8, v8i16, v4i32, ... + setAlignment(VECTOR_ALIGN, 8, 8, 64); // v2i32 + setAlignment(VECTOR_ALIGN, 16, 16, 128); // v16i8, v8i16, v4i32, ... setAlignment(AGGREGATE_ALIGN, 0, 0, 0); // struct, union, class, ... while (!temp.empty()) { @@ -218,7 +218,7 @@ void TargetData::init(const std::string &TargetDescription) { case 'a': { align_type = (*p == 'i' ? INTEGER_ALIGN : (*p == 'f' ? FLOAT_ALIGN : - (*p == 'v' ? PACKED_ALIGN : AGGREGATE_ALIGN))); + (*p == 'v' ? VECTOR_ALIGN : AGGREGATE_ALIGN))); size = (short) atoi(++p); abi_align = atoi(getToken(token, ":").c_str()) / 8; pref_align = atoi(getToken(token, ":").c_str()) / 8; @@ -485,7 +485,7 @@ unsigned char TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const AlignType = FLOAT_ALIGN; break; case Type::VectorTyID: - AlignType = PACKED_ALIGN; + AlignType = VECTOR_ALIGN; break; default: assert(0 && "Bad type for getAlignment!!!"); |