namespace {
struct CallGraphPrinter : public ModulePass {
- static const int ID; // Pass ID, replacement for typeid
+ static char ID; // Pass ID, replacement for typeid
CallGraphPrinter() : ModulePass((intptr_t)&ID) {}
virtual bool runOnModule(Module &M) {
}
};
- const int CallGraphPrinter::ID = 0;
+ char CallGraphPrinter::ID = 0;
RegisterPass<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
}