This is an archive of the discontinued LLVM Phabricator instance.

[opt] Hoist the call throuh SymbolBody::getReplacement out of the inline method to get a SymbolBody and into the callers, and kill now dead includes.
ClosedPublic

Authored by chandlerc on Jun 26 2015, 8:40 PM.

Details

Summary

This removes the need to have the SymbolBody definition when we're
defining the inline method and makes it a better inline method. That was
the only reason for a lot of header includes here. Removing these and
using forward declarations actually uncovers a bunch of cross-header
dependencies that I've fixed while I'm here, and will allow me to
introduce some *important* inline code into Chunks.h that requires the
definition of ObjectFile.

No functionality changed at this point.

Diff Detail

Event Timeline

chandlerc updated this revision to Diff 28623.Jun 26 2015, 8:40 PM
chandlerc retitled this revision from to [opt] Hoist the call throuh SymbolBody::getReplacement out of the inline method to get a SymbolBody and into the callers, and kill now dead includes..
chandlerc updated this object.
chandlerc edited the test plan for this revision. (Show Details)
chandlerc added a reviewer: ruiu.
chandlerc added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Jun 27 2015, 12:11 PM
ruiu edited edge metadata.

LGTM

COFF/InputFiles.h
13–14

Ah, you already did this. :)

This revision is now accepted and ready to land.Jun 27 2015, 12:11 PM
This revision was automatically updated to reflect the committed changes.