---
 opts/ClassMethodInliner.cpp        | 4 ++++
 opts/TypeFeedbackDrivenInliner.cpp | 4 ++++
 2 files changed, 8 insertions(+)

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<const Function *, 16> 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<CallSite, 16> messages;
 
       for (Module::iterator F=M.begin(), fend=M.end() ;
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to