mirror of
https://github.com/golang/go
synced 2024-11-22 02:54:39 -07:00
cgo: if value for constant did not parse, get it from DWARF info
R=rsc, borman CC=golang-dev https://golang.org/cl/5525043
This commit is contained in:
parent
b4be65bc7f
commit
900b8becb3
@ -453,6 +453,11 @@ func (p *Package) guessKinds(f *File) []*Name {
|
||||
for i, b := range isConst {
|
||||
if b {
|
||||
names[i].Kind = "const"
|
||||
if toSniff[i] != nil && names[i].Const == "" {
|
||||
j := len(needType)
|
||||
needType = needType[0 : j+1]
|
||||
needType[j] = names[i]
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, n := range toSniff {
|
||||
|
Loading…
Reference in New Issue
Block a user