]> Cypherpunks repositories - gostls13.git/commit
cgo: handle new Apple LLVM-based gcc from Xcode 4.2
authorRuss Cox <rsc@golang.org>
Mon, 13 Jun 2011 18:43:54 +0000 (14:43 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 13 Jun 2011 18:43:54 +0000 (14:43 -0400)
commit9968090dddb74e7b5cd1352d791b7cf8cb7a6045
tree219acbe4e26cfa51a60b4c039f4cdaec7fec9faf
parent8834bb0bfa7cbbfeb9df0c6d1fa2296e24a431d5
cgo: handle new Apple LLVM-based gcc from Xcode 4.2

That gcc does not include enumerator names and values
in its DWARF debug output.  Create a data block from which
we can read the values instead.

Fixes #1881.

R=iant
CC=golang-dev
https://golang.org/cl/4607045
src/cmd/cgo/gcc.go
src/pkg/debug/dwarf/type.go
src/pkg/debug/elf/file.go