1 //===-- cc1_main.cpp - Clang CC1 Driver -----------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This is the entry point to the clang -cc1 functionality.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Support/raw_ostream.h"
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 << '"';