X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FProgram.h;h=727864df2721e83d88ad3728bd32ffe561b0dcfe;hb=HEAD;hp=5f1bc12601b1d76c7b9c1a6b9fc52cfaabd4c0a2;hpb=cf0db29df20d9c665da7e82bb261bdd7cf7f1b2b;p=oota-llvm.git diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h index 5f1bc12601b..727864df272 100644 --- a/include/llvm/Support/Program.h +++ b/include/llvm/Support/Program.h @@ -67,8 +67,7 @@ struct ProcessInfo { /// \returns The fully qualified path to the first \p Name in \p Paths if it /// exists. \p Name if \p Name has slashes in it. Otherwise an error. ErrorOr - findProgramByName(StringRef Name, - ArrayRef Paths = ArrayRef()); + findProgramByName(StringRef Name, ArrayRef Paths = None); // These functions change the specified standard stream (stdin or stdout) to // binary mode. They return errc::success if the specified stream @@ -131,7 +130,7 @@ struct ProcessInfo { /// Return true if the given arguments fit within system-specific /// argument length limits. - bool argumentsFitWithinSystemLimits(ArrayRef Args); + bool commandLineFitsWithinSystemLimits(StringRef Program, ArrayRef Args); /// File encoding options when writing contents that a non-UTF8 tool will /// read (on Windows systems). For UNIX, we always use UTF-8. @@ -187,7 +186,7 @@ struct ProcessInfo { ///< string is non-empty upon return an error occurred while invoking the ///< program. ); - } // namespace sys -} // namespace llvm + } +} #endif