[llvm-commits] [dragonegg] r94537 - in /dragonegg/trunk: llvm-abi.h llvm-types.cpp
Duncan Sands
baldrick at free.fr
Tue Jan 26 02:48:33 PST 2010
Author: baldrick
Date: Tue Jan 26 04:48:32 2010
New Revision: 94537
URL: http://llvm.org/viewvc/llvm-project?rev=94537&view=rev
Log:
TYPE_TRANSPARENT_UNION was renamed to TYPE_TRANSPARENT_AGGR in
GCC commit 156106. Apparently records can also be transparent
now (I'm not sure what this means though).
Modified:
dragonegg/trunk/llvm-abi.h
dragonegg/trunk/llvm-types.cpp
Modified: dragonegg/trunk/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-abi.h?rev=94537&r1=94536&r2=94537&view=diff
==============================================================================
--- dragonegg/trunk/llvm-abi.h (original)
+++ dragonegg/trunk/llvm-abi.h Tue Jan 26 04:48:32 2010
@@ -558,7 +558,7 @@
/// HandleUnion - Handle a UNION_TYPE or QUAL_UNION_TYPE tree.
///
void HandleUnion(tree type, std::vector<const Type*> &ScalarElts) {
- if (TYPE_TRANSPARENT_UNION(type)) {
+ if (TYPE_TRANSPARENT_AGGR(type)) {
tree Field = TYPE_FIELDS(type);
assert(Field && "Transparent union must have some elements!");
while (TREE_CODE(Field) != FIELD_DECL) {
@@ -999,7 +999,7 @@
///
/// This is the default implementation which was copied from DefaultABI.
void HandleUnion(tree type, std::vector<const Type*> &ScalarElts) {
- if (TYPE_TRANSPARENT_UNION(type)) {
+ if (TYPE_TRANSPARENT_AGGR(type)) {
tree Field = TYPE_FIELDS(type);
assert(Field && "Transparent union must have some elements!");
while (TREE_CODE(Field) != FIELD_DECL) {
Modified: dragonegg/trunk/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-types.cpp?rev=94537&r1=94536&r2=94537&view=diff
==============================================================================
--- dragonegg/trunk/llvm-types.cpp (original)
+++ dragonegg/trunk/llvm-types.cpp Tue Jan 26 04:48:32 2010
@@ -557,7 +557,7 @@
case UNION_TYPE: {
// If this is a union with the transparent_union attribute set, it is
// treated as if it were just the same as its first type.
- if (TYPE_TRANSPARENT_UNION(type)) {
+ if (TYPE_TRANSPARENT_AGGR(type)) {
tree Field = TYPE_FIELDS(type);
assert(Field && "Transparent union must have some elements!");
while (TREE_CODE(Field) != FIELD_DECL) {
More information about the llvm-commits
mailing list