summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Process.inc
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-04-17 21:09:16 +0000
committerRui Ueyama <ruiu@google.com>2018-04-17 21:09:16 +0000
commite6ac9f5ec3b890885abef8c4a315203ef02a25e5 (patch)
tree4f5c9383a696cb4501c0a9c9f2cd9e96c4d9b4bc /llvm/lib/Support/Unix/Process.inc
parent4576dc06beca1889c8e5ab8fd12306f44a8e2828 (diff)
downloadbcm5719-llvm-e6ac9f5ec3b890885abef8c4a315203ef02a25e5.tar.gz
bcm5719-llvm-e6ac9f5ec3b890885abef8c4a315203ef02a25e5.zip
Rename sys::Process::GetArgumentVector -> sys::windows::GetCommandLineArguments
GetArgumentVector (or GetCommandLineArguments) is very Windows-specific. I think it doesn't make much sense to provide that function from sys::Process. I also made a change so that the function takes a BumpPtrAllocator instead of a SpecificBumpPtrAllocator. The latter is the class to call dtors, but since char * is trivially destructible, we should use the former class. Differential Revision: https://reviews.llvm.org/D45641 llvm-svn: 330216
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r--llvm/lib/Support/Unix/Process.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index 7a4e3861400..3ce2212c6e7 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -172,15 +172,6 @@ Optional<std::string> Process::GetEnv(StringRef Name) {
return std::string(Val);
}
-std::error_code
-Process::GetArgumentVector(SmallVectorImpl<const char *> &ArgsOut,
- ArrayRef<const char *> ArgsIn,
- SpecificBumpPtrAllocator<char> &) {
- ArgsOut.append(ArgsIn.begin(), ArgsIn.end());
-
- return std::error_code();
-}
-
namespace {
class FDCloser {
public:
OpenPOWER on IntegriCloud