summaryrefslogtreecommitdiff
path: root/tools/llvm-dis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-13 23:01:14 +0000
committerChris Lattner <sabre@nondot.org>2004-02-13 23:01:14 +0000
commit055b3ff7bd2e1b9cf7dfda3181e67416bfd5c445 (patch)
tree27d699c39f6502c505e12f9a851964e94b48ea89 /tools/llvm-dis
parent208d638fa4fbf31ba83445861ad13c2e8c72e5f4 (diff)
downloadllvm-055b3ff7bd2e1b9cf7dfda3181e67416bfd5c445.tar.gz
llvm-055b3ff7bd2e1b9cf7dfda3181e67416bfd5c445.tar.bz2
llvm-055b3ff7bd2e1b9cf7dfda3181e67416bfd5c445.tar.xz
Change how we create the cwriter, and add a buttload of libraries that it now
needs. This will be fixed shortly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-dis')
-rw-r--r--tools/llvm-dis/Makefile2
-rw-r--r--tools/llvm-dis/llvm-dis.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-dis/Makefile b/tools/llvm-dis/Makefile
index d5d0f93dfa..aac499c77b 100644
--- a/tools/llvm-dis/Makefile
+++ b/tools/llvm-dis/Makefile
@@ -9,5 +9,5 @@
LEVEL = ../..
TOOLNAME = llvm-dis
-USEDLIBS = bcreader cwriter ipa.a vmcore support.a
+USEDLIBS = cwriter ipa.a scalaropts.a target.a transformutils analysis.a bcreader vmcore support.a
include $(LEVEL)/Makefile.common
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index d035b7f91a..225787baa7 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-dis.cpp
@@ -122,7 +122,7 @@ int main(int argc, char **argv) {
Passes.add(new PrintModulePass(Out));
break;
case c: // Convert LLVM to C
- Passes.add(createWriteToCPass(*Out));
+ AddPassesToWriteC(Passes, *Out);
break;
}