diff --git a/opts/ClassMethodInliner.cpp b/opts/ClassMethodInliner.cpp index 7d061f3..4e211e5 100644 --- a/opts/ClassMethodInliner.cpp +++ b/opts/ClassMethodInliner.cpp @@ -34,7 +34,11 @@ namespace virtual bool runOnModule(Module &M) { unsigned MessageSendMDKind = M.getContext().getMDKindID("GNUObjCMessageSend"); +#if LLVM_MAJOR > 3 || (LLVM_MAJOR == 3 && LLVM_MINOR >= 3) + InlineCostAnalysis CA; +#else InlineCostAnalyzer CA; +#endif SmallPtrSet NeverInline; GNUstep::IMPCacher cacher = GNUstep::IMPCacher(M.getContext(), this); diff --git a/opts/TypeFeedbackDrivenInliner.cpp b/opts/TypeFeedbackDrivenInliner.cpp index 050c8be..10b124c 100644 --- a/opts/TypeFeedbackDrivenInliner.cpp +++ b/opts/TypeFeedbackDrivenInliner.cpp @@ -33,7 +33,11 @@ namespace { //TypeInfoProvider::SharedTypeInfoProvider()->PrintStatistics(); GNUstep::IMPCacher cacher = GNUstep::IMPCacher(M.getContext(), this); +#if LLVM_MAJOR > 3 || (LLVM_MAJOR == 3 && LLVM_MINOR >= 3) + InlineCostAnalysis CA; +#else InlineCostAnalyzer CA; +#endif SmallVector messages; for (Module::iterator F=M.begin(), fend=M.end() ;