From cf4e229615f84653e47ec54a3035eb2ff1f454cc Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 29 Sep 2018 14:51:57 +0330 Subject: with a few minor tweaks, you can build m0, obfuscator and bruiser with llvm 8.0(latest tested:trunk 340121). we are skipping llvm 7.0. Ill keep backwards compatibility with 5.0 or 6.0 for a good while. --- m0/mutator-lvl0.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'm0/mutator-lvl0.h') diff --git a/m0/mutator-lvl0.h b/m0/mutator-lvl0.h index 5881228..1891fef 100644 --- a/m0/mutator-lvl0.h +++ b/m0/mutator-lvl0.h @@ -37,6 +37,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.* #include "clang/AST/ASTContext.h" #include "clang/AST/ASTTypeTraits.h" /**********************************************************************************************************************/ +/*macros*/ +#if __clang_major__ <= 6 +#define DEVI_GETLOCSTART getLocStart +#define DEVI_GETLOCEND getLocEnd +#elif __clang_major__ >= 8 +#define DEVI_GETLOCSTART getBeginLoc +#define DEVI_GETLOCEND getEndLoc +#endif +/**********************************************************************************************************************/ /*externals*/ /**********************************************************************************************************************/ struct WeakPoint -- cgit v1.2.3