diff options
author | Zachary Turner <zturner@google.com> | 2018-06-10 02:46:11 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-06-10 02:46:11 +0000 |
commit | 5e119768a1ecf9d6f8ad5b38de7497cc334b69d9 (patch) | |
tree | 31ae8137e7b92faa9ff20039c9eaebc9ace074c2 /llvm/lib/Support/Program.cpp | |
parent | 1fbca91c07975454d668926f535f36829616e2e2 (diff) | |
download | bcm5719-llvm-5e119768a1ecf9d6f8ad5b38de7497cc334b69d9.tar.gz bcm5719-llvm-5e119768a1ecf9d6f8ad5b38de7497cc334b69d9.zip |
Resubmit "[Support] Expose flattenWindowsCommandLine."
There were a few linux compilation failures, but other than that
I think this was just a flake that caused the tests to fail. I'm
going to resubmit and see if the failures go away, if not I'll
revert again.
llvm-svn: 334355
Diffstat (limited to 'llvm/lib/Support/Program.cpp')
-rw-r--r-- | llvm/lib/Support/Program.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Support/Program.cpp b/llvm/lib/Support/Program.cpp index 8484b46e522..8c56fb6db2d 100644 --- a/llvm/lib/Support/Program.cpp +++ b/llvm/lib/Support/Program.cpp @@ -63,6 +63,15 @@ ProcessInfo sys::ExecuteNoWait(StringRef Program, const char **Args, return PI; } +bool sys::commandLineFitsWithinSystemLimits(StringRef Program, + ArrayRef<const char *> Args) { + SmallVector<StringRef, 8> StringRefArgs; + StringRefArgs.reserve(Args.size()); + for (const char *A : Args) + StringRefArgs.emplace_back(A); + return commandLineFitsWithinSystemLimits(Program, StringRefArgs); +} + // Include the platform-specific parts of this class. #ifdef LLVM_ON_UNIX #include "Unix/Program.inc" |