diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2015-04-05 23:30:42 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-04-05 23:30:42 +0000 |
| commit | 93c73ebcbd73f5436d13ffc41f49a86fc062deb8 (patch) | |
| tree | 10bf9fb3a1314fc8a1c3b963b4550960718384ad /llgo/irgen/typemap.go | |
| parent | 7d39641c805bf3263ffb55a23ecf4bbfd37402c0 (diff) | |
| download | bcm5719-llvm-93c73ebcbd73f5436d13ffc41f49a86fc062deb8.tar.gz bcm5719-llvm-93c73ebcbd73f5436d13ffc41f49a86fc062deb8.zip | |
Roll gofrontend to a6e10414311a
This takes us to Go 1.4. Also includes a couple of changes to the test
suite, both in the runtime package:
- Disable TestSetPanicOnFault. We cannot support this scenario at all,
due to LLVM's lack of non-call exceptions.
- Tweak TestFinalizerType. This test only passes with two GC runs.
Differential Revision: http://reviews.llvm.org/D8828
llvm-svn: 234134
Diffstat (limited to 'llgo/irgen/typemap.go')
| -rw-r--r-- | llgo/irgen/typemap.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llgo/irgen/typemap.go b/llgo/irgen/typemap.go index 63da78b9186..486ee6f8958 100644 --- a/llgo/irgen/typemap.go +++ b/llgo/irgen/typemap.go @@ -1600,6 +1600,7 @@ const ( gccgoRuntimeTypeKindSTRING = 24 gccgoRuntimeTypeKindSTRUCT = 25 gccgoRuntimeTypeKindUNSAFE_POINTER = 26 + gccgoRuntimeTypeKindDIRECT_IFACE = (1 << 5) gccgoRuntimeTypeKindNO_POINTERS = (1 << 7) ) @@ -1669,7 +1670,7 @@ func runtimeTypeKind(t types.Type) (k uint8) { case types.String: k = gccgoRuntimeTypeKindSTRING case types.UnsafePointer: - k = gccgoRuntimeTypeKindUNSAFE_POINTER + k = gccgoRuntimeTypeKindUNSAFE_POINTER | gccgoRuntimeTypeKindDIRECT_IFACE default: panic("unrecognized builtin type") } @@ -1680,7 +1681,7 @@ func runtimeTypeKind(t types.Type) (k uint8) { case *types.Struct: k = gccgoRuntimeTypeKindSTRUCT case *types.Pointer: - k = gccgoRuntimeTypeKindPTR + k = gccgoRuntimeTypeKindPTR | gccgoRuntimeTypeKindDIRECT_IFACE case *types.Signature: k = gccgoRuntimeTypeKindFUNC case *types.Interface: |

