diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-03 10:04:57 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-03-03 10:04:57 +0000 |
commit | 8aac60071fc4bcba5f8999a6d904789b795be431 (patch) | |
tree | a530ef0399d0e9d777b938de3e75d0782bf0cb8e /tools | |
parent | 0e65857392c8661b7df689bb184dde4b9e17a2f8 (diff) | |
download | external_llvm-8aac60071fc4bcba5f8999a6d904789b795be431.zip external_llvm-8aac60071fc4bcba5f8999a6d904789b795be431.tar.gz external_llvm-8aac60071fc4bcba5f8999a6d904789b795be431.tar.bz2 |
Comment fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvmc/example/Hello/Hello.cpp | 2 | ||||
-rw-r--r-- | tools/llvmc/example/Simple/Simple.td | 25 |
2 files changed, 17 insertions, 10 deletions
diff --git a/tools/llvmc/example/Hello/Hello.cpp b/tools/llvmc/example/Hello/Hello.cpp index 395ef9b..23a13a5 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 b974cbc..87bc385 100644 --- a/tools/llvmc/example/Simple/Simple.td +++ b/tools/llvmc/example/Simple/Simple.td @@ -1,19 +1,26 @@ -// A simple wrapper for gcc. -// To compile, use this command: +//===- 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. // -// $ cd $LLVMC2_DIR -// $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple +//===----------------------------------------------------------------------===// // -// To build this plugin as a dynamic library: +// A simple LLVMC-based gcc wrapper that shows how to write LLVMC plugins. // -// $ cd $LLVMC2_DIR -// $ make BUILTIN_PLUGINS="" -// $ cd plugins/Simple +// To compile, use this command: +// +// $ 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" |