mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
main: compile C source files in packages
TODO: C++ etc. files
This commit is contained in:
@@ -149,6 +149,10 @@ func NewCompiler(pkgName string, config Config) (*Compiler, error) {
|
||||
return c, nil
|
||||
}
|
||||
|
||||
func (c *Compiler) Packages() []*loader.Package {
|
||||
return c.ir.LoaderProgram.Sorted()
|
||||
}
|
||||
|
||||
// Return the LLVM module. Only valid after a successful compile.
|
||||
func (c *Compiler) Module() llvm.Module {
|
||||
return c.mod
|
||||
|
||||
Reference in New Issue
Block a user