main: comment the TinyGo IR header line
Without this, clang tries to process the header line as part of its valid input. eg: main.ll:1:1: error: expected top-level entity Generated LLVM IR: ^
Этот коммит содержится в:
родитель
019331e8af
коммит
1113f9ec0c
1 изменённых файлов: 1 добавлений и 1 удалений
2
main.go
2
main.go
|
@ -110,7 +110,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
|
||||||
return &multiError{errs}
|
return &multiError{errs}
|
||||||
}
|
}
|
||||||
if config.printIR {
|
if config.printIR {
|
||||||
fmt.Println("Generated LLVM IR:")
|
fmt.Println("; Generated LLVM IR:")
|
||||||
fmt.Println(c.IR())
|
fmt.Println(c.IR())
|
||||||
}
|
}
|
||||||
if err := c.Verify(); err != nil {
|
if err := c.Verify(); err != nil {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче