cl: supports decl: <param>

This commit is contained in:
Li Jie
2024-06-06 10:59:35 +08:00
parent 3ecb43072d
commit 15fad2e841
4 changed files with 25 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ import (
"log"
"os"
"path"
"path/filepath"
"strings"
"testing"
@@ -74,7 +75,7 @@ func decodeLinkFile(llFile string) (data []byte, err error) {
return
}
defer zipf.Close()
f, err := zipf.Open("llgo_autogen.ll")
f, err := zipf.Open(filepath.Base(llFile))
if err != nil {
return
}