aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-06 09:29:13 +0000
committerChris Lattner <sabre@nondot.org>2007-05-06 09:29:13 +0000
commit4bcca0f2ac85c918fc8617e34b7642e5e5233460 (patch)
treeedde26d0727868dbdf64d84f457c084db5e9a250 /examples
parentc1d5624d71f7534cfc1bd51b76ead9cea99d3e8d (diff)
downloadexternal_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.zip
external_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.tar.gz
external_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.tar.bz2
switch this to bitcode instead of bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/ModuleMaker/Makefile2
-rw-r--r--examples/ModuleMaker/ModuleMaker.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/ModuleMaker/Makefile b/examples/ModuleMaker/Makefile
index f669bf2..8bb934f 100644
--- a/examples/ModuleMaker/Makefile
+++ b/examples/ModuleMaker/Makefile
@@ -9,6 +9,6 @@
LEVEL=../..
TOOLNAME=ModuleMaker
EXAMPLE_TOOL = 1
-LINK_COMPONENTS := bcwriter
+LINK_COMPONENTS := bitwriter
include $(LEVEL)/Makefile.common
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index 4983597..ec7398c 100644
--- a/examples/ModuleMaker/ModuleMaker.cpp
+++ b/examples/ModuleMaker/ModuleMaker.cpp
@@ -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 @@ int main() {
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;