diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-29 11:21:57 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-29 11:21:57 +0000 |
commit | cf4e229615f84653e47ec54a3035eb2ff1f454cc (patch) | |
tree | 0d66615902490610ad9d8ebbcd4befb1f5776e3c /m0/mutator-lvl0.h | |
parent | did some code cleanup on m0 and bruiser, now you can specify report paths for... (diff) | |
download | mutator-cf4e229615f84653e47ec54a3035eb2ff1f454cc.tar.gz mutator-cf4e229615f84653e47ec54a3035eb2ff1f454cc.zip |
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.
Diffstat (limited to 'm0/mutator-lvl0.h')
-rw-r--r-- | m0/mutator-lvl0.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |