mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Don't do stupid things: doInitialization(Module&) is not applicable to ModulePass :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40700fe683
commit
966e7997b5
@ -101,28 +101,13 @@ namespace {
|
||||
|
||||
public:
|
||||
static char ID;
|
||||
explicit CppWriter(std::ostream &o) : ModulePass((intptr_t)&ID), Out(o) {}
|
||||
explicit CppWriter(std::ostream &o) :
|
||||
ModulePass((intptr_t)&ID), Out(o), uniqueNum(0), is_inline(false) {}
|
||||
|
||||
virtual const char *getPassName() const { return "C++ backend"; }
|
||||
|
||||
bool runOnModule(Module &M);
|
||||
|
||||
bool doInitialization(Module &M) {
|
||||
uniqueNum = 0;
|
||||
is_inline = false;
|
||||
|
||||
TypeNames.clear();
|
||||
ValueNames.clear();
|
||||
UnresolvedTypes.clear();
|
||||
TypeStack.clear();
|
||||
UsedNames.clear();
|
||||
DefinedTypes.clear();
|
||||
DefinedValues.clear();
|
||||
ForwardRefs.clear();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void printProgram(const std::string& fname, const std::string& modName );
|
||||
void printModule(const std::string& fname, const std::string& modName );
|
||||
void printContents(const std::string& fname, const std::string& modName );
|
||||
|
Loading…
Reference in New Issue
Block a user