c/clang/symg: use xtool/nm to parse symbol

This commit is contained in:
luoliwoshang
2024-07-30 15:07:33 +08:00
parent 14face336e
commit 099c80e04b
2 changed files with 40 additions and 44 deletions

View File

@@ -18,6 +18,7 @@ package types
import (
"github.com/goplus/llgo/c/cjson"
"github.com/goplus/llgo/xtool/nm"
)
// Config represents a configuration for the llcppg tool.
@@ -35,9 +36,8 @@ type Conf struct {
}
type CPPSymbol struct {
Symbol string `json:"symbol"`
Type string `json:"type"`
Name string `json:"name"`
DemangleName string
*nm.Symbol
}
type ASTInformation struct {