mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Deleting -emitbitcode option which did nothing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -17,22 +17,21 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class WriteBitcodePass : public ModulePass {
|
class WriteBitcodePass : public ModulePass {
|
||||||
std::ostream *Out; // ostream to print on
|
std::ostream &Out; // ostream to print on
|
||||||
public:
|
public:
|
||||||
static char ID; // Pass identifcation, replacement for typeid
|
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) {
|
bool runOnModule(Module &M) {
|
||||||
if (Out)
|
WriteBitcodeToFile(&M, Out);
|
||||||
WriteBitcodeToFile(&M, *Out);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
char WriteBitcodePass::ID = 0;
|
char WriteBitcodePass::ID = 0;
|
||||||
static RegisterPass<WriteBitcodePass> X("emitbitcode", "Bitcode Writer");
|
|
||||||
|
|
||||||
/// CreateBitcodeWriterPass - Create and return a pass that writes the module
|
/// CreateBitcodeWriterPass - Create and return a pass that writes the module
|
||||||
/// to the specified ostream.
|
/// to the specified ostream.
|
||||||
|
Reference in New Issue
Block a user