aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-extract
diff options
context:
space:
mode:
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 0000000000..80a90fa41a
--- /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 78d0426be1..e1088d2b2d 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;