summaryrefslogtreecommitdiff
path: root/tools/llvmc/examples/Hello/Hello.cpp
blob: 71f04fdd49d76e1fb66bb6161c9782a387c92734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===- Hello.cpp - Example code from "Writing an LLVMC Plugin" ------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Shows how to write llvmc-based drivers without using TableGen.
//
//===----------------------------------------------------------------------===//

#include "llvm/CompilerDriver/AutoGenerated.h"
#include "llvm/CompilerDriver/Main.inc"

#include "llvm/Support/raw_ostream.h"

namespace llvmc {
namespace autogenerated {

int PreprocessOptions () { return 0; }

int PopulateLanguageMap (LanguageMap&) { llvm::outs() << "Hello!\n"; return 0; }

int PopulateCompilationGraph (CompilationGraph&) { return 0; }

}
}