[llvm-commits] [llvm] r43683 - /llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp
Gordon Henriksen
gordonhenriksen at mac.com
Sun Nov 4 12:28:31 PST 2007
Author: gordon
Date: Sun Nov 4 14:28:31 2007
New Revision: 43683
URL: http://llvm.org/viewvc/llvm-project?rev=43683&view=rev
Log:
Deleting -emitbitcode option which did nothing.
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp?rev=43683&r1=43682&r2=43683&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriterPass.cpp Sun Nov 4 14:28:31 2007
@@ -17,22 +17,21 @@
namespace {
class WriteBitcodePass : public ModulePass {
- std::ostream *Out; // ostream to print on
+ std::ostream &Out; // ostream to print on
public:
static char ID; // Pass identifcation, replacement for typeid
- WriteBitcodePass() : ModulePass((intptr_t) &ID), Out(0) { }
- WriteBitcodePass(std::ostream &o) : ModulePass((intptr_t) &ID), Out(&o) {}
+ WriteBitcodePass(std::ostream &o) : ModulePass((intptr_t) &ID), Out(o) {}
+
+ const char *getPassName() const { return "Bitcode Writer"; }
bool runOnModule(Module &M) {
- if (Out)
- WriteBitcodeToFile(&M, *Out);
+ WriteBitcodeToFile(&M, Out);
return false;
}
};
}
char WriteBitcodePass::ID = 0;
-static RegisterPass<WriteBitcodePass> X("emitbitcode", "Bitcode Writer");
/// CreateBitcodeWriterPass - Create and return a pass that writes the module
/// to the specified ostream.
More information about the llvm-commits
mailing list