This is an archive of the discontinued LLVM Phabricator instance.

[llgo] irgen: make it possible to use a custom importer
ClosedPublic

Authored by pcc on Dec 29 2014, 3:23 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 17688.Dec 29 2014, 3:23 PM
pcc retitled this revision from to [llgo] irgen: make it possible to use a custom importer.
pcc updated this object.
pcc edited the test plan for this revision. (Show Details)
pcc added a reviewer: axw.
pcc added a subscriber: Unknown Object (MLST).
axw accepted this revision.Dec 29 2014, 4:34 PM
axw edited edge metadata.

LGTM, with a couple of minor suggestions.

irgen/compiler.go
89 ↗(On Diff #17688)

If *Importer* is nil, the compiler will set this field automatically using MakeImporter(). If Importer is non-nil, InitMap must be non-nil also (I think?)

161 ↗(On Diff #17688)

A brief comment may be useful here, describing the interaction with GccgoPath.

This revision is now accepted and ready to land.Dec 29 2014, 4:34 PM
pcc added inline comments.Dec 30 2014, 4:26 PM
irgen/compiler.go
89 ↗(On Diff #17688)

Yes, done.

161 ↗(On Diff #17688)

Done.

This revision was automatically updated to reflect the committed changes.