diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-29 18:16:22 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-29 18:16:22 +0000 |
| commit | 0acc739817b8f9e1112caf15a34cc574788d50ca (patch) | |
| tree | 0794189a32c489faa624c05ca77870202a4204ae /llvm/lib/Target | |
| parent | d9e3b5c5bd422254813a71990832ea9f83795a22 (diff) | |
| download | bcm5719-llvm-0acc739817b8f9e1112caf15a34cc574788d50ca.tar.gz bcm5719-llvm-0acc739817b8f9e1112caf15a34cc574788d50ca.zip | |
Don't do stupid things: doInitialization(Module&) is not applicable to ModulePass :)
llvm-svn: 50433
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index bd06970ce4a..b42001fa284 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -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 ); |

