blob: a9d27efb1c3b100b41496fff8290dbca90cf3fdc [file] [log] [blame]
Daniel Dunbar217acbf2009-11-19 07:37:51 +00001//===-- 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
Daniel Dunbar217acbf2009-11-19 07:37:51 +000014#include "llvm/Support/raw_ostream.h"
Daniel Dunbar217acbf2009-11-19 07:37:51 +000015
Daniel Dunbarc88aa792009-11-30 07:18:13 +000016int cc1_main(const char **ArgBegin, const char **ArgEnd,
Daniel Dunbar545c2812009-11-29 20:58:32 +000017 const char *Argv0, void *MainAddr) {
Daniel Dunbar217acbf2009-11-19 07:37:51 +000018 llvm::errs() << "cc1 argv:";
19 for (const char **i = ArgBegin; i != ArgEnd; ++i)
20 llvm::errs() << " \"" << *i << '"';
21 llvm::errs() << "\n";
22
Daniel Dunbar217acbf2009-11-19 07:37:51 +000023 return 0;
24}