From a27e31e07ade2d91904980cb9b15f542d525e8a2 Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 1 Mar 2013 11:30:17 +0000 Subject: [PATCH] Fix optimisations with LLVM trunk. --- opts/LLVMCompat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opts/LLVMCompat.h b/opts/LLVMCompat.h index f20fdd0..2a37344 100644 --- a/opts/LLVMCompat.h +++ b/opts/LLVMCompat.h @@ -37,6 +37,9 @@ #include #endif +#if (LLVM_MAJOR > 3) || ((LLVM_MAJOR == 3) && (LLVM_MINOR >= 3)) +# define InlineCostAnalyzer InlineCostAnalysis +#endif // Only preserve names in a debug build. This simplifies the // IR in a release build, but makes it much harder to debug.