mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-21 01:25:20 +00:00
Fix PR1395, by passing the ID correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d396b1a47
commit
1ce6f8da72
@ -54,6 +54,7 @@ namespace {
|
||||
class VISIBILITY_HIDDEN SimpleInliner : public Inliner {
|
||||
std::map<const Function*, FunctionInfo> CachedFunctionInfo;
|
||||
public:
|
||||
SimpleInliner() : Inliner(&ID) {}
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
int getInlineCost(CallSite CS);
|
||||
};
|
||||
|
@ -36,9 +36,8 @@ namespace {
|
||||
cl::desc("Control the amount of inlining to perform (default = 200)"));
|
||||
}
|
||||
|
||||
char Inliner::ID = 0;
|
||||
Inliner::Inliner()
|
||||
: CallGraphSCCPass((intptr_t)&ID), InlineThreshold(InlineLimit) {}
|
||||
Inliner::Inliner(const void *ID)
|
||||
: CallGraphSCCPass((intptr_t)ID), InlineThreshold(InlineLimit) {}
|
||||
|
||||
/// getAnalysisUsage - For this class, we declare that we require and preserve
|
||||
/// the call graph. If the derived class implements this method, it should
|
||||
|
@ -27,8 +27,7 @@ namespace llvm {
|
||||
/// perform the inlining operations that does not depend on the policy.
|
||||
///
|
||||
struct Inliner : public CallGraphSCCPass {
|
||||
static char ID;
|
||||
Inliner();
|
||||
Inliner(const void *ID);
|
||||
|
||||
/// getAnalysisUsage - For this class, we declare that we require and preserve
|
||||
/// the call graph. If the derived class implements this method, it should
|
||||
|
Loading…
Reference in New Issue
Block a user