[llvm-commits] CVS: llvm-stacker/tools/stkrc/Makefile stkrc.cpp

Reid Spencer reid at x10sys.com
Tue May 8 07:41:39 PDT 2007



Changes in directory llvm-stacker/tools/stkrc:

Makefile updated: 1.13 -> 1.14
stkrc.cpp updated: 1.13 -> 1.14
---
Log message:

Adjust stkrc for change from Bytecode to Bitcode.


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

 Makefile  |    2 +-
 stkrc.cpp |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm-stacker/tools/stkrc/Makefile
diff -u llvm-stacker/tools/stkrc/Makefile:1.13 llvm-stacker/tools/stkrc/Makefile:1.14
--- llvm-stacker/tools/stkrc/Makefile:1.13	Sun Feb  4 16:25:16 2007
+++ llvm-stacker/tools/stkrc/Makefile	Tue May  8 09:41:21 2007
@@ -15,7 +15,7 @@
 
 # Define the link components
 USEDLIBS=stkr_compiler 
-LINK_COMPONENTS = asmparser bcwriter ipo scalaropts \
+LINK_COMPONENTS = asmparser bitwriter ipo scalaropts \
 		  transformutils ipa analysis target $(TARGETS_TO_BUILD) core
 
 # Define our configuration files


Index: llvm-stacker/tools/stkrc/stkrc.cpp
diff -u llvm-stacker/tools/stkrc/stkrc.cpp:1.13 llvm-stacker/tools/stkrc/stkrc.cpp:1.14
--- llvm-stacker/tools/stkrc/stkrc.cpp:1.13	Wed Dec  6 19:30:31 2006
+++ llvm-stacker/tools/stkrc/stkrc.cpp	Tue May  8 09:41:21 2007
@@ -19,7 +19,7 @@
 
 #include "../../lib/compiler/StackerCompiler.h"
 #include "llvm/Assembly/Parser.h"
-#include "llvm/Bytecode/Writer.h"
+#include "llvm/Bitcode/ReaderWriter.h"
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Streams.h"
@@ -163,8 +163,7 @@
         throw std::string("error opening ") + OutputFilename + "!";
       }
 
-      OStream L(*Out);
-      WriteBytecodeToFile(M.get(), L);
+      WriteBitcodeToFile(M.get(), *Out);
     } catch (const ParseError &E) {
       cerr << argv[0] << ": " << E.getMessage() << "\n";
       return 1;






More information about the llvm-commits mailing list