This is an archive of the discontinued LLVM Phabricator instance.

Driver: begin threading frontend support for SymbolRewriter
ClosedPublic

Authored by abdulras on Dec 30 2014, 4:05 PM.

Details

Reviewers
echristo
Summary

Allow blessed access to the symbol rewriter from the driver. Although the
symbol rewriter could be invoked through tools like opt and llc, it would not
accessible from the frontend. This allows us to read the rewrite map files in
the frontend rather than the backend and enable symbol rewriting for actually
performing the symbol interpositioning.

Diff Detail

Event Timeline

abdulras updated this revision to Diff 17730.Dec 30 2014, 4:05 PM
abdulras retitled this revision from to Driver: begin threading frontend support for SymbolRewriter.
abdulras updated this object.
abdulras edited the test plan for this revision. (Show Details)
abdulras added a subscriber: compnerd.
compnerd added a subscriber: Unknown Object (MLST).Jan 3 2015, 11:42 AM
echristo edited edge metadata.Jan 8 2015, 7:36 PM

Couple of questions inline...

include/clang/Driver/Options.td
580

Joined and -frewrite-map-file= ?

lib/CodeGen/BackendUtil.cpp
361

Conditionalize this based on whether or not the flag has been passed or the vector is empty?

echristo accepted this revision.Jan 8 2015, 7:46 PM
echristo edited edge metadata.

Oh, also if you like the changes LGTM with them. Might want to check with multiple files to make sure it's actually working.

Otherwise it seems reasonable.

This revision is now accepted and ready to land.Jan 8 2015, 7:46 PM
compnerd closed this revision.Jan 8 2015, 9:23 PM

SVN r225504 with the suggestions.

Thanks for the review and suggestions!