virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
AU.addRequired<LocalDataStructures>();
}
private:
- DSGraph &calculateGraph(Function &F);
+ DSGraph &calculateGraph(Function &F, unsigned Indent);
};
virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);
AU.addRequired<LocalDataStructures>();
}
private:
- DSGraph &calculateGraph(Function &F);
+ DSGraph &calculateGraph(Function &F, unsigned Indent);
};
virtual bool run(Module &M);
+ bool hasGraph(const Function &F) const {
+ return DSInfo.find(&F) != DSInfo.end();
+ }
+
// getDSGraph - Return the data structure graph for the specified function.
DSGraph &getDSGraph(const Function &F) const {
std::map<const Function*, DSGraph*>::const_iterator I = DSInfo.find(&F);