irgen, driver: modify Compiler.Compile to take a FileSet and Files
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 31 Dec 2014 00:25:32 +0000 (00:25 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 31 Dec 2014 00:25:32 +0000 (00:25 +0000)
commit9350942b20bf1e6e2b182159f5837ba209485972
tree667c09eccb6f856dea1f5e9d640655faf15dbb82
parentbc405294f047be809dc58639ad4d4af692b8bfaa
irgen, driver: modify Compiler.Compile to take a FileSet and Files

This change allows clients to generate IR using "files" received from locations
other than the file system. The regular file parser is moved to a new library,
"driver", which is intended to eventually contain much of the logic from
the existing driver.

Differential Revision: http://reviews.llvm.org/D6794

llvm-svn: 225026
llgo/CMakeLists.txt
llgo/cmd/gllgo/gllgo.go
llgo/driver/parser.go [moved from llgo/irgen/parser.go with 88% similarity]
llgo/irgen/compiler.go