X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FCompiler.h;h=1497dd61edee9a3e0d1b9fb88fcf451a402925b0;hb=fc82fabe00b0b820e3c0d7fc9e289bace0295f11;hp=046033fb9e424a4dc72b60a1eb4d5a61056a7f0b;hpb=0c0cc92762bdf34f26762eeaf66f6f8791428db5;p=oota-llvm.git diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 046033fb9e4..1497dd61ede 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by Chris Lattner and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -17,7 +17,7 @@ // The VISIBILITY_HIDDEN macro, used for marking classes with the GCC-specific // visibility("hidden") attribute. -#if __GNUC__ >= 4 +#if (__GNUC__ >= 4) && !defined(__MINGW32__) #define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden"))) #else #define VISIBILITY_HIDDEN @@ -37,4 +37,12 @@ #define TEMPLATE_INSTANTIATION(X) #endif +// DISABLE_INLINE - On compilers where we have a directive to do so, mark a +// method "not for inlining". +#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +#define DISABLE_INLINE __attribute__((noinline)) +#else +#define DISABLE_INLINE +#endif + #endif