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 | 966e7997b5690ac5799e0b67fe216e4c81e1357b (patch) | |
tree | 3844fd8e48fe1b6fdff9b86df836e09beb366938 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 40700fe6836c808789d1fe5cc6bcccce86d5c62b (diff) |
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
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index bd06970ce4..b42001fa28 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/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 ); |