mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue