]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/driver/cc1_main.cpp
Update clang to r90226.
[FreeBSD/FreeBSD.git] / tools / driver / cc1_main.cpp
1 //===-- cc1_main.cpp - Clang CC1 Driver -----------------------------------===//
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 // This is the entry point to the clang -cc1 functionality.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "llvm/Support/raw_ostream.h"
15
16 int cc1_main(const char **ArgBegin, const char **ArgEnd,
17              const char *Argv0, void *MainAddr) {
18   llvm::errs() << "cc1 argv:";
19   for (const char **i = ArgBegin; i != ArgEnd; ++i)
20     llvm::errs() << " \"" << *i << '"';
21   llvm::errs() << "\n";
22
23   return 0;
24 }