summaryrefslogtreecommitdiff
path: root/utils/not/not.cpp
blob: dd89b8f11c0e4a93d6fcddc3fae4939ea9fa5edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===- not.cpp - The 'not' testing tool -----------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "llvm/System/Path.h"
#include "llvm/System/Program.h"
using namespace llvm;

int main(int argc, const char **argv) {
  sys::Path Program = sys::Program::FindProgramByName(argv[1]);
  return !sys::Program::ExecuteAndWait(Program, argv + 1);
}