1 //===- Hello.cpp - Example code from "Writing an LLVMC Plugin" ------------===//
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 // Shows how to write llvmc-based drivers without using TableGen.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/CompilerDriver/AutoGenerated.h"
15 #include "llvm/CompilerDriver/Main.inc"
17 #include "llvm/Support/raw_ostream.h"
20 namespace autogenerated {
22 int PreprocessOptions () { return 0; }
24 int PopulateLanguageMap (LanguageMap&) { llvm::outs() << "Hello!\n"; return 0; }
26 int PopulateCompilationGraph (CompilationGraph&) { return 0; }