kill off the last use of TRI::AsmName.
[llvm/avr.git] / tools / llvmc / example / Hello / Hello.cpp
blob9c96bd0a416bf69dd35834ae9ace0f0bea4b98db
1 //===- 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 // Test plugin for LLVMC. Shows how to write plugins without using TableGen.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/CompilerDriver/CompilationGraph.h"
15 #include "llvm/CompilerDriver/Plugin.h"
16 #include "llvm/Support/raw_ostream.h"
18 namespace {
19 struct MyPlugin : public llvmc::BasePlugin {
20 void PopulateLanguageMap(llvmc::LanguageMap&) const
21 { outs() << "Hello!\n"; }
23 void PopulateCompilationGraph(llvmc::CompilationGraph&) const
27 static llvmc::RegisterPlugin<MyPlugin> RP("Hello", "Hello World plugin");