mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-01 01:26:56 +00:00
Switch from using CallInst's to represent call sites to using the LLVM
CallSite class. Now we can represent function calls by invoke instructions too! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
#include "Support/hash_set"
|
||||
|
||||
class Type;
|
||||
class CallInst;
|
||||
class Instruction;
|
||||
class DSGraph;
|
||||
class DSNode;
|
||||
class DSCallSite;
|
||||
|
||||
// FIXME: move this stuff to a private header
|
||||
namespace DataStructureAnalysis {
|
||||
@@ -75,7 +74,7 @@ class BUDataStructures : public Pass {
|
||||
// DSInfo, one graph for each function
|
||||
hash_map<Function*, DSGraph*> DSInfo;
|
||||
DSGraph *GlobalsGraph;
|
||||
hash_multimap<CallInst*, Function*> ActualCallees;
|
||||
hash_multimap<Instruction*, Function*> ActualCallees;
|
||||
public:
|
||||
~BUDataStructures() { releaseMemory(); }
|
||||
|
||||
@@ -106,7 +105,7 @@ public:
|
||||
AU.addRequired<LocalDataStructures>();
|
||||
}
|
||||
|
||||
typedef hash_multimap<CallInst*, Function*> ActualCalleesTy;
|
||||
typedef hash_multimap<Instruction*, Function*> ActualCalleesTy;
|
||||
const ActualCalleesTy &getActualCallees() const {
|
||||
return ActualCallees;
|
||||
}
|
||||
|
Reference in New Issue
Block a user