Refactor Assembly/Bytecode writer code into Assembly & bytecode libraries
authorChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2001 20:32:07 +0000 (20:32 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2001 20:32:07 +0000 (20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@904 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp

index da5f74f2aa75c6305634d4354f7558e14127d3e6..ff492aa59116835a86543e6870e5ac8ec9f58748 100644 (file)
@@ -10,7 +10,8 @@
 #include "llvm/Transforms/Instrumentation/TraceValues.h"
 #include "llvm/Transforms/LowerAllocations.h"
 #include "llvm/Transforms/HoistPHIConstants.h"
-#include "llvm/Transforms/PrintModulePass.h"
+#include "llvm/Assembly/PrintModulePass.h"
+#include "llvm/Bytecode/WriteBytecodePass.h"
 #include "llvm/Transforms/ConstantMerge.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Module.h"
@@ -144,7 +145,7 @@ int main(int argc, char **argv) {
       return 1;
     }
     
-    Passes.push_back(new WriteModuleBytecode(os, true));
+    Passes.push_back(new WriteBytecodePass(os, true));
   }
   
   // Replace malloc and free instructions with library calls.