blob: 71f04fdd49d76e1fb66bb6161c9782a387c92734 [file] [log] [blame]
Mikhail Glushenkovb57326c2010-08-19 20:04:19 +00001//===- Hello.cpp - Example code from "Writing an LLVMC Plugin" ------------===//
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// Shows how to write llvmc-based drivers without using TableGen.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm/CompilerDriver/AutoGenerated.h"
15#include "llvm/CompilerDriver/Main.inc"
16
17#include "llvm/Support/raw_ostream.h"
18
19namespace llvmc {
20namespace autogenerated {
21
22int PreprocessOptions () { return 0; }
23
24int PopulateLanguageMap (LanguageMap&) { llvm::outs() << "Hello!\n"; return 0; }
25
26int PopulateCompilationGraph (CompilationGraph&) { return 0; }
27
28}
29}