diff options
author | Zachary Turner <zturner@google.com> | 2014-08-14 16:01:25 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-08-14 16:01:25 +0000 |
commit | 696b52878ff0c704d66539181d0ddda0d1b30c87 (patch) | |
tree | 5acc766f31d5015cd3cbb10a3301fc76ac3021eb /lldb/source/Target/Process.cpp | |
parent | 085c4b294b6439175f5ebf150e2be09c5cef9d37 (diff) | |
download | bcm5719-llvm-696b52878ff0c704d66539181d0ddda0d1b30c87.tar.gz bcm5719-llvm-696b52878ff0c704d66539181d0ddda0d1b30c87.zip |
Refactor FileAction out of ProcessLaunchInfo.
FileAction was previously a nested class in ProcessLaunchInfo.
This led to some unfortunate style consequences, such as requiring
the AddPosixSpawnFileAction() funciton to be defined in the Target
layer, instead of the more appropriate Host layer. This patch
makes FileAction its own independent class in the Target layer,
and then moves AddPosixSpawnFileAction() into Host as a result.
Differential Revision: http://reviews.llvm.org/D4877
llvm-svn: 215649
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 1609182e61a..95785a93ec2 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -404,7 +404,7 @@ ProcessLaunchCommandOptions::SetOptionValue (uint32_t option_idx, const char *op case 'i': // STDIN for read only { - ProcessLaunchInfo::FileAction action; + FileAction action; if (action.Open (STDIN_FILENO, option_arg, true, false)) launch_info.AppendFileAction (action); } @@ -412,7 +412,7 @@ ProcessLaunchCommandOptions::SetOptionValue (uint32_t option_idx, const char *op case 'o': // Open STDOUT for write only { - ProcessLaunchInfo::FileAction action; + FileAction action; if (action.Open (STDOUT_FILENO, option_arg, false, true)) launch_info.AppendFileAction (action); } @@ -420,7 +420,7 @@ ProcessLaunchCommandOptions::SetOptionValue (uint32_t option_idx, const char *op case 'e': // STDERR for write only { - ProcessLaunchInfo::FileAction action; + FileAction action; if (action.Open (STDERR_FILENO, option_arg, false, true)) launch_info.AppendFileAction (action); } @@ -433,7 +433,7 @@ ProcessLaunchCommandOptions::SetOptionValue (uint32_t option_idx, const char *op case 'n': // Disable STDIO { - ProcessLaunchInfo::FileAction action; + FileAction action; if (action.Open (STDIN_FILENO, "/dev/null", true, false)) launch_info.AppendFileAction (action); if (action.Open (STDOUT_FILENO, "/dev/null", false, true)) |