From 1113f9ec0c4c781aa9a97e706ed289dc1df13614 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Thu, 9 May 2019 18:54:11 +1000 Subject: [PATCH] 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: ^ --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e11d0983..d753a3dc 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act return &multiError{errs} } if config.printIR { - fmt.Println("Generated LLVM IR:") + fmt.Println("; Generated LLVM IR:") fmt.Println(c.IR()) } if err := c.Verify(); err != nil {