summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-11-04 20:28:31 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-11-04 20:28:31 +0000
commit35f398a9cdfc40dc5ffefcc5aee49e1a8334c39d (patch)
tree9d2868a7355d4fa316ef80c052a6d04a152341c2 /llvm/lib/Bitcode
parent0e6b674993c9fd6abcf01ff3186a3c1028e9f245 (diff)
downloadbcm5719-llvm-35f398a9cdfc40dc5ffefcc5aee49e1a8334c39d.tar.gz
bcm5719-llvm-35f398a9cdfc40dc5ffefcc5aee49e1a8334c39d.zip
Deleting -emitbitcode option which did nothing.
llvm-svn: 43683
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
index 74123116da8..8de7ffb2db2 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
@@ -17,22 +17,21 @@ using namespace llvm;
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.
OpenPOWER on IntegriCloud