summaryrefslogtreecommitdiff
path: root/tools/llvm-extract
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-24 17:36:05 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-24 17:36:05 +0000
commitde03bc07ef7034936971dcc0117e4a9a9436fcee (patch)
tree8815fe4febd73d5f3d1addca0834104404a3597b /tools/llvm-extract
parent55d2a1a54629b75a516b88165c8e48bdb2dea2c9 (diff)
extract has been renamed to llvm-extract to avoid conflicting with another tool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-extract')
-rw-r--r--tools/llvm-extract/Makefile16
-rw-r--r--tools/llvm-extract/llvm-extract.cpp8
2 files changed, 20 insertions, 4 deletions
diff --git a/tools/llvm-extract/Makefile b/tools/llvm-extract/Makefile
new file mode 100644
index 00000000000..80a90fa41a8
--- /dev/null
+++ b/tools/llvm-extract/Makefile
@@ -0,0 +1,16 @@
+##===- tools/llvm-extract/Makefile -------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+LEVEL = ../..
+
+TOOLNAME = llvm-extract
+USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
+ LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
+ LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
+
+include $(LEVEL)/Makefile.common
diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp
index 78d0426be18..e1088d2b2d5 100644
--- a/tools/llvm-extract/llvm-extract.cpp
+++ b/tools/llvm-extract/llvm-extract.cpp
@@ -1,4 +1,4 @@
-//===- extract.cpp - LLVM function extraction utility ---------------------===//
+//===- llvm-extract.cpp - LLVM function extraction utility ----------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -69,9 +69,9 @@ int main(int argc, char **argv) {
Passes.add(new TargetData("extract", M.get())); // Use correct TargetData
// Either isolate the function or delete it from the Module
Passes.add(createFunctionExtractionPass(F, DeleteFn));
- Passes.add(createGlobalDCEPass()); // Delete unreachable globals
- Passes.add(createFunctionResolvingPass()); // Delete prototypes
- Passes.add(createDeadTypeEliminationPass()); // Remove dead types...
+ Passes.add(createGlobalDCEPass()); // Delete unreachable globals
+ Passes.add(createFunctionResolvingPass()); // Delete prototypes
+ Passes.add(createDeadTypeEliminationPass()); // Remove dead types...
std::ostream *Out = 0;