From: Chris Lattner Date: Fri, 13 Feb 2004 23:01:14 +0000 (+0000) Subject: Change how we create the cwriter, and add a buttload of libraries that it now X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=055b3ff7bd2e1b9cf7dfda3181e67416bfd5c445;p=oota-llvm.git 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 --- diff --git a/tools/llvm-dis/Makefile b/tools/llvm-dis/Makefile index d5d0f93dfa4..aac499c77b4 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 d035b7f91a0..225787baa7b 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; }