summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/examples/PrintFunctionNames
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-06-09 18:11:12 +0000
committered <ed@FreeBSD.org>2010-06-09 18:11:12 +0000
commita1185afe0f653cca036f117b540fefc6f799e95d (patch)
tree8b9786210f005ec3c3b7b19ee52714d390c2b121 /contrib/llvm/tools/clang/examples/PrintFunctionNames
parent92026fed219b8457b0b6d9ed33a538b105a670cc (diff)
downloadFreeBSD-src-a1185afe0f653cca036f117b540fefc6f799e95d.zip
FreeBSD-src-a1185afe0f653cca036f117b540fefc6f799e95d.tar.gz
Remove unneeded directories.
Even though Roman removed these directories in his working copy, they weren't removed from the actual repository, also causing his working copy to be corrupted.
Diffstat (limited to 'contrib/llvm/tools/clang/examples/PrintFunctionNames')
-rw-r--r--contrib/llvm/tools/clang/examples/PrintFunctionNames/CMakeLists.txt26
-rw-r--r--contrib/llvm/tools/clang/examples/PrintFunctionNames/Makefile27
-rw-r--r--contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp44
-rw-r--r--contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt10
4 files changed, 0 insertions, 107 deletions
diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/CMakeLists.txt b/contrib/llvm/tools/clang/examples/PrintFunctionNames/CMakeLists.txt
deleted file mode 100644
index 49dd22a..0000000
--- a/contrib/llvm/tools/clang/examples/PrintFunctionNames/CMakeLists.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-set(SHARED_LIBRARY TRUE)
-
-set(LLVM_NO_RTTI 1)
-
-set(LLVM_USED_LIBS
- clangIndex
- clangFrontend
- clangDriver
- clangSema
- clangAnalysis
- clangAST
- clangParse
- clangLex
- clangBasic)
-
-set( LLVM_LINK_COMPONENTS
- bitreader
- mc
- core
- )
-
-add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
-
-set_target_properties(PrintFunctionNames
- PROPERTIES
- LINKER_LANGUAGE CXX)
diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/Makefile b/contrib/llvm/tools/clang/examples/PrintFunctionNames/Makefile
deleted file mode 100644
index 57d3ba9..0000000
--- a/contrib/llvm/tools/clang/examples/PrintFunctionNames/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-##===- examples/PrintFunctionNames/Makefile ----------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../../..
-LIBRARYNAME = PrintFunctionNames
-
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
-
-# Include this here so we can get the configuration of the targets that have
-# been configured for construction. We have to do this early so we can set up
-# LINK_COMPONENTS before including Makefile.rules
-include $(LEVEL)/Makefile.config
-
-LINK_LIBS_IN_SHARED = 1
-SHARED_LIBRARY = 1
-
-LINK_COMPONENTS := bitreader mc core
-USEDLIBS = clangIndex.a clangFrontend.a clangDriver.a clangSema.a \
- clangAnalysis.a clangAST.a clangParse.a clangLex.a clangBasic.a
-
-include $(LEVEL)/Makefile.common
diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp b/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
deleted file mode 100644
index 5b7b66a..0000000
--- a/contrib/llvm/tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-//===- PrintFunctionNames.cpp ---------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// Example clang plugin which simply prints the names of all the top-level decls
-// in the input file.
-//
-//===----------------------------------------------------------------------===//
-
-#include "clang/Frontend/FrontendPluginRegistry.h"
-#include "clang/AST/ASTConsumer.h"
-#include "clang/AST/AST.h"
-#include "llvm/Support/raw_ostream.h"
-using namespace clang;
-
-namespace {
-
-class PrintFunctionsConsumer : public ASTConsumer {
-public:
- virtual void HandleTopLevelDecl(DeclGroupRef DG) {
- for (DeclGroupRef::iterator i = DG.begin(), e = DG.end(); i != e; ++i) {
- const Decl *D = *i;
- if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
- llvm::errs() << "top-level-decl: \"" << ND->getNameAsString() << "\"\n";
- }
- }
-};
-
-class PrintFunctionNamesAction : public ASTFrontendAction {
-protected:
- ASTConsumer *CreateASTConsumer(CompilerInstance &CI, llvm::StringRef) {
- return new PrintFunctionsConsumer();
- }
-};
-
-}
-
-FrontendPluginRegistry::Add<PrintFunctionNamesAction>
-X("print-fns", "print function names");
diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt b/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt
deleted file mode 100644
index 267865c..0000000
--- a/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-This is a simple example demonstrating how to use clang's facility for
-providing AST consumers using a plugin.
-
-You will probably need to build clang so that it exports all symbols (disable
-TOOL_NO_EXPORT in the tools/clang Makefile).
-
-Once the plugin is built, you can run it using:
---
-$ clang -cc1 -load path/to/PrintFunctionNames.so -plugin print-fns some-input-file.c
---
OpenPOWER on IntegriCloud