| Daniel Dunbar | 48f7ce8 | 2009-09-24 06:23:57 +0000 | [diff] [blame] | 1 | //===- not.cpp - The 'not' testing tool -----------------------------------===// | 
 | 2 | // | 
 | 3 | //                     The LLVM Compiler Infrastructure | 
 | 4 | // | 
 | 5 | // This file is distributed under the University of Illinois Open Source | 
 | 6 | // License. See LICENSE.TXT for details. | 
 | 7 | // | 
 | 8 | //===----------------------------------------------------------------------===// | 
 | 9 |  | 
 | 10 | #include "llvm/System/Path.h" | 
 | 11 | #include "llvm/System/Program.h" | 
 | 12 | using namespace llvm; | 
 | 13 |  | 
 | 14 | int main(int argc, const char **argv) { | 
 | 15 |   sys::Path Program = sys::Program::FindProgramByName(argv[1]); | 
 | 16 |   return !sys::Program::ExecuteAndWait(Program, argv + 1); | 
 | 17 | } |