[PATCH] [llgo] irgen: expose DisableUnusedImportCheck flag
Peter Collingbourne
peter at pcc.me.uk
Tue Jan 13 21:19:42 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6956
Files:
llgo/trunk/irgen/compiler.go
Index: llgo/trunk/irgen/compiler.go
===================================================================
--- llgo/trunk/irgen/compiler.go
+++ llgo/trunk/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.18136.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150114/6cd7da45/attachment.bin>
More information about the llvm-commits
mailing list