Mercurial > projects > ldc
annotate ir/irdtype.h @ 1346:6f4154b318ef
Remove an old workaround that was kept around for ABI-compatibility on x86-64
between different LLVM versions.
This means LLVM r67588 is required if you want to compile for x86-64, otherwise
the backend will assert when you try to return e.g. struct { int i; char c; }
from a function. (In particular, this is no longer compatible with LLVM 2.5)
It also means that any code returning small structs on x86-64 will probably
need to be recompiled in order to be linkable to code compiled with this change.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 12 May 2009 15:50:48 +0200 |
parents | 2a92c115461d |
children |
rev | line source |
---|---|
1191
d68796be59fd
updated ir/irtype.h guard name
Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
parents:
1184
diff
changeset
|
1 #ifndef LDC_IR_IRDTYPE_H |
d68796be59fd
updated ir/irtype.h guard name
Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
parents:
1184
diff
changeset
|
2 #define LDC_IR_IRDTYPE_H |
158
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
3 |
173
db9890b3fb64
[svn r189] moving IR data back into DMD frontend nodes
ChristianK
parents:
158
diff
changeset
|
4 #include <set> |
158
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
5 |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
6 namespace llvm { |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
7 class PATypeHolder; |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
8 } |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
9 |
1184
a6dbd571d417
Moved ir/irtype.* into ir/irdtype.*.
Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
parents:
797
diff
changeset
|
10 struct IrDType |
158
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
11 { |
1184
a6dbd571d417
Moved ir/irtype.* into ir/irdtype.*.
Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
parents:
797
diff
changeset
|
12 IrDType(); |
158
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
13 llvm::PATypeHolder* type; |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
14 }; |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
15 |
287540c5f05e
[svn r174] added file missing from previous commit [173]
ChristianK
parents:
diff
changeset
|
16 #endif |