mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Add hasGraph() methods to all of the passes for the printer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1079051d8
commit
8013f9eb65
@ -39,6 +39,10 @@ public:
|
||||
|
||||
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);
|
||||
@ -74,6 +78,10 @@ public:
|
||||
|
||||
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);
|
||||
@ -94,7 +102,7 @@ public:
|
||||
AU.addRequired<LocalDataStructures>();
|
||||
}
|
||||
private:
|
||||
DSGraph &calculateGraph(Function &F);
|
||||
DSGraph &calculateGraph(Function &F, unsigned Indent);
|
||||
};
|
||||
|
||||
|
||||
@ -112,6 +120,10 @@ public:
|
||||
|
||||
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);
|
||||
|
@ -39,6 +39,10 @@ public:
|
||||
|
||||
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);
|
||||
@ -74,6 +78,10 @@ public:
|
||||
|
||||
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);
|
||||
@ -94,7 +102,7 @@ public:
|
||||
AU.addRequired<LocalDataStructures>();
|
||||
}
|
||||
private:
|
||||
DSGraph &calculateGraph(Function &F);
|
||||
DSGraph &calculateGraph(Function &F, unsigned Indent);
|
||||
};
|
||||
|
||||
|
||||
@ -112,6 +120,10 @@ public:
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user