This is an archive of the discontinued LLVM Phabricator instance.

Make FileAction not be a nested class, and move AddPosixSpawnFileAction from ProcessLaunchInfo to Host.
ClosedPublic

Authored by zturner on Aug 12 2014, 3:50 PM.

Details

Summary

Previously FileAction was nested in ProcessLaunchInfo. This patch moves it into its own header file. This allows us to move the AddPosixSpawnFileAction function into Host, instead of being in Target. This was causing problems previously, because it required LLDB_DISABLE_POSIX to be checked from a header file, which put a burden on programmers to remember to #include Host/Config.h before including ProcessLaunchInfo, which kind of doesn't make sense and violates the Host / Target layer separation.

Since whether posix_spawn can be used is inherently host-specific, it makes more sense for this functionality to live inside of Host, which is what this patch addresses.

Diff Detail

Repository
rL LLVM

Event Timeline

zturner updated this revision to Diff 12423.Aug 12 2014, 3:50 PM
zturner retitled this revision from to Make FileAction not be a nested class, and move AddPosixSpawnFileAction from ProcessLaunchInfo to Host..
zturner updated this object.
zturner edited the test plan for this revision. (Show Details)
zturner added a subscriber: Unknown Object (MLST).
zturner updated this revision to Diff 12473.Aug 13 2014, 5:37 PM

Fixed up the Xcode project to contain the new files. First time ever using a Mac, so please check that I did this correctly.

I've now compiled this patch on Windows, Linux, and Mac, and tests pass on all 3.

zturner closed this revision.Aug 14 2014, 9:10 AM
zturner updated this revision to Diff 12513.

Closed by commit rL215649 (authored by @zturner).