From 03c050f018a07d93dc0a2a63a78145fef7c30f1f Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 3 Mar 2009 10:04:57 +0000 Subject: [PATCH] Comment fixes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65943 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvmc/example/Hello/Hello.cpp | 2 +- tools/llvmc/example/Simple/Simple.td | 27 +++++++++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/tools/llvmc/example/Hello/Hello.cpp b/tools/llvmc/example/Hello/Hello.cpp index 395ef9bbd48..23a13a57c2b 100644 --- a/tools/llvmc/example/Hello/Hello.cpp +++ b/tools/llvmc/example/Hello/Hello.cpp @@ -1,4 +1,4 @@ -//===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===// +//===- Hello.cpp - Example code from "Writing an LLVMC Plugin" ------------===// // // The LLVM Compiler Infrastructure // diff --git a/tools/llvmc/example/Simple/Simple.td b/tools/llvmc/example/Simple/Simple.td index b974cbc95eb..87bc385b7a7 100644 --- a/tools/llvmc/example/Simple/Simple.td +++ b/tools/llvmc/example/Simple/Simple.td @@ -1,19 +1,26 @@ -// A simple wrapper for gcc. +//===- Simple.td - A simple plugin for LLVMC ------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// A simple LLVMC-based gcc wrapper that shows how to write LLVMC plugins. +// // To compile, use this command: // -// $ cd $LLVMC2_DIR -// $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple -// -// To build this plugin as a dynamic library: -// -// $ cd $LLVMC2_DIR -// $ make BUILTIN_PLUGINS="" -// $ cd plugins/Simple +// $ cd $LLVMC_DIR/example/Simple // $ make // // Run as: // -// $ llvmc2 -load $LLVM_DIR/Release/lib/LLVMCSimple.so +// $ llvmc -load $LLVM_DIR/Release/lib/plugin_llvmc_Simple.so +// +// For instructions on how to build your own LLVMC-based driver, see +// the 'example/Skeleton' directory. +//===----------------------------------------------------------------------===// include "llvm/CompilerDriver/Common.td"