mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
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: ^
This commit is contained in:
committed by
Ayke van Laethem
parent
019331e8af
commit
1113f9ec0c
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user