summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-04-29 18:16:22 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-04-29 18:16:22 +0000
commit0acc739817b8f9e1112caf15a34cc574788d50ca (patch)
tree0794189a32c489faa624c05ca77870202a4204ae /llvm/lib/Target
parentd9e3b5c5bd422254813a71990832ea9f83795a22 (diff)
downloadbcm5719-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.cpp19
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 );
OpenPOWER on IntegriCloud