From 9f1d9fd1964d82f3e801efb71518144492cdf290 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 12 Jun 2013 20:58:35 +0000 Subject: Remove the program class. It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183864 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/not/not.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'utils/not') diff --git a/utils/not/not.cpp b/utils/not/not.cpp index 9a924b56a7..bb2d87bb44 100644 --- a/utils/not/not.cpp +++ b/utils/not/not.cpp @@ -13,11 +13,10 @@ using namespace llvm; int main(int argc, const char **argv) { - sys::Path Program = sys::Program::FindProgramByName(argv[1]); + sys::Path Program = sys::FindProgramByName(argv[1]); std::string ErrMsg; - int Result = sys::Program::ExecuteAndWait(Program, argv + 1, 0, 0, 0, 0, - &ErrMsg); + int Result = sys::ExecuteAndWait(Program, argv + 1, 0, 0, 0, 0, &ErrMsg); if (Result < 0) { errs() << "Error: " << ErrMsg << "\n"; return 1; -- cgit v1.2.3