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.