[llvm-commits] CVS: llvm/examples/ModuleMaker/Makefile ModuleMaker.cpp

Chris Lattner sabre at nondot.org
Sun May 6 02:28:37 PDT 2007



Changes in directory llvm/examples/ModuleMaker:

Makefile updated: 1.12 -> 1.13
ModuleMaker.cpp updated: 1.12 -> 1.13
---
Log message:

switch this to bitcode instead of bytecode


---
Diffs of the changes:  (+4 -4)

 Makefile        |    2 +-
 ModuleMaker.cpp |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/examples/ModuleMaker/Makefile
diff -u llvm/examples/ModuleMaker/Makefile:1.12 llvm/examples/ModuleMaker/Makefile:1.13
--- llvm/examples/ModuleMaker/Makefile:1.12	Mon Sep  4 01:04:03 2006
+++ llvm/examples/ModuleMaker/Makefile	Sun May  6 04:27:00 2007
@@ -9,6 +9,6 @@
 LEVEL=../..
 TOOLNAME=ModuleMaker
 EXAMPLE_TOOL = 1
-LINK_COMPONENTS := bcwriter
+LINK_COMPONENTS := bitwriter
 
 include $(LEVEL)/Makefile.common


Index: llvm/examples/ModuleMaker/ModuleMaker.cpp
diff -u llvm/examples/ModuleMaker/ModuleMaker.cpp:1.12 llvm/examples/ModuleMaker/ModuleMaker.cpp:1.13
--- llvm/examples/ModuleMaker/ModuleMaker.cpp:1.12	Sat Dec 30 23:50:28 2006
+++ llvm/examples/ModuleMaker/ModuleMaker.cpp	Sun May  6 04:27:00 2007
@@ -17,8 +17,8 @@
 #include "llvm/DerivedTypes.h"
 #include "llvm/Constants.h"
 #include "llvm/Instructions.h"
-#include "llvm/Bytecode/Writer.h"
-#include "llvm/Support/Streams.h"
+#include "llvm/Bitcode/ReaderWriter.h"
+#include <iostream>
 using namespace llvm;
 
 int main() {
@@ -53,7 +53,7 @@
   BB->getInstList().push_back(new ReturnInst(Add));
 
   // Output the bytecode file to stdout
-  WriteBytecodeToFile(M, cout);
+  WriteBitcodeToFile(M, std::cout);
 
   // Delete the module and all of its contents.
   delete M;






More information about the llvm-commits mailing list