Mercurial > projects > ldc
comparison gen/abi-x86-64.cpp @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | 2292878925f4 |
children | 8d086d552909 |
comparison
equal
deleted
inserted
replaced
1568:a591aa6bd6dc | 1569:755abafbf25d |
---|---|
34 | 34 |
35 #include "mtype.h" | 35 #include "mtype.h" |
36 #include "declaration.h" | 36 #include "declaration.h" |
37 #include "aggregate.h" | 37 #include "aggregate.h" |
38 | 38 |
39 #include "gen/irstate.h" | |
39 #include "gen/llvm.h" | 40 #include "gen/llvm.h" |
40 #include "gen/tollvm.h" | 41 #include "gen/tollvm.h" |
41 #include "gen/logger.h" | 42 #include "gen/logger.h" |
42 #include "gen/dvalue.h" | 43 #include "gen/dvalue.h" |
43 #include "gen/llvmhelpers.h" | 44 #include "gen/llvmhelpers.h" |
279 break; | 280 break; |
280 | 281 |
281 default: | 282 default: |
282 assert(0 && "Unanticipated argument class for second half"); | 283 assert(0 && "Unanticipated argument class for second half"); |
283 } | 284 } |
284 return LLStructType::get(parts); | 285 return LLStructType::get(gIR->context(), parts); |
285 } | 286 } |
286 } | 287 } |
287 | 288 |
288 | 289 |
289 // Implementation details for extern(D) | 290 // Implementation details for extern(D) |