Remove the program class.
[oota-llvm.git] / utils / not / not.cpp
index 9a924b56a7923de3998ace9324883997fefcff35..bb2d87bb44d4dcb59dad48dbe7ca250a8756d268 100644 (file)
 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;