mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
add support for taking the address of free.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
566f600779
commit
07753cecb9
@ -126,14 +126,17 @@ public:
|
||||
DSGraph &getDSGraph(const Function &F) const {
|
||||
hash_map<Function*, DSGraph*>::const_iterator I =
|
||||
DSInfo.find(const_cast<Function*>(&F));
|
||||
assert(I != DSInfo.end() && "Function not in module!");
|
||||
return *I->second;
|
||||
if (I != DSInfo.end())
|
||||
return *I->second;
|
||||
return const_cast<BUDataStructures*>(this)->
|
||||
CreateGraphForExternalFunction(F);
|
||||
}
|
||||
|
||||
DSGraph &getGlobalsGraph() const { return *GlobalsGraph; }
|
||||
|
||||
EquivalenceClasses<GlobalValue*> &getGlobalECs() { return GlobalECs; }
|
||||
|
||||
DSGraph &CreateGraphForExternalFunction(const Function &F);
|
||||
|
||||
/// deleteValue/copyValue - Interfaces to update the DSGraphs in the program.
|
||||
/// These correspond to the interfaces defined in the AliasAnalysis class.
|
||||
@ -234,8 +237,9 @@ public:
|
||||
DSGraph &getDSGraph(const Function &F) const {
|
||||
hash_map<Function*, DSGraph*>::const_iterator I =
|
||||
DSInfo.find(const_cast<Function*>(&F));
|
||||
assert(I != DSInfo.end() && "Function not in module!");
|
||||
return *I->second;
|
||||
if (I != DSInfo.end()) return *I->second;
|
||||
return const_cast<TDDataStructures*>(this)->
|
||||
getOrCreateDSGraph(const_cast<Function&>(F));
|
||||
}
|
||||
|
||||
DSGraph &getGlobalsGraph() const { return *GlobalsGraph; }
|
||||
|
Loading…
Reference in New Issue
Block a user