This is an archive of the discontinued LLVM Phabricator instance.

Add support for intercepting functions from msvcr110.dll
ClosedPublic

Authored by ehsan on Sep 25 2014, 10:20 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ehsan updated this revision to Diff 14079.Sep 25 2014, 10:20 AM
ehsan retitled this revision from to Add support for intercepting functions from msvcr110.dll.
ehsan updated this object.
ehsan edited the test plan for this revision. (Show Details)
ehsan added a reviewer: timurrrr.
ehsan added a subscriber: Unknown Object (MLST).
timurrrr accepted this revision.Sep 25 2014, 1:28 PM
timurrrr edited edge metadata.

Formatting nit, otherwise LGTM.

lib/interception/interception_win.cc
186 ↗(On Diff #14079)

I'd much rather prefer something like

const char *InterestingDLLs[] = { "kernel32.dll",
                                  "msvcr110.dll", // VS2012
                                  "msvcr120.dll", // VS2013
                                  NULL };

or

const char *InterestingDLLs[] = {
  "kernel32.dll",
  "msvcr110.dll", // VS2012
  "msvcr120.dll", // VS2013
  NULL };

[please pick the version that clang-format likes more]
especially given the naming confusion (VS11=VS2012, VS12=VS2013).

What do you think?

This revision is now accepted and ready to land.Sep 25 2014, 1:28 PM

Sounds good. clang-format seems to prefer the former so I will commit that.

ehsan closed this revision.Sep 25 2014, 1:57 PM
ehsan updated this revision to Diff 14087.

Closed by commit rL218465 (authored by @ehsan).