[PATCH] [llgo] irgen: expose DisableUnusedImportCheck flag
Peter Collingbourne
peter at pcc.me.uk
Tue Jan 13 12:50:00 PST 2015
Hi axw,
http://reviews.llvm.org/D6956
Files:
irgen/compiler.go
Index: irgen/compiler.go
===================================================================
--- irgen/compiler.go
+++ irgen/compiler.go
@@ -98,6 +98,10 @@
// loader.Config, see the documentation for that package for more
// information.
PackageCreated func(*types.Package)
+
+ // DisableUnusedImportCheck disables the unused import check performed
+ // by go/types if set to true.
+ DisableUnusedImportCheck bool
}
type Compiler struct {
@@ -206,6 +210,7 @@
TypeChecker: types.Config{
Import: compiler.Importer,
Sizes: compiler.llvmtypes,
+ DisableUnusedImportCheck: compiler.DisableUnusedImportCheck,
},
Build: &buildctx.Context,
PackageCreated: compiler.PackageCreated,
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6956.18108.patch
Type: text/x-patch
Size: 715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150113/0fc34180/attachment.bin>
More information about the llvm-commits
mailing list