Chromium Code Reviews| Index: src/IceDefs.h |
| diff --git a/src/IceDefs.h b/src/IceDefs.h |
| index 991e47f100957f7804a2f63aacc0c00d97fcc16b..f32cdcc0e20ef1523f224ee65aa3932913f04e16 100644 |
| --- a/src/IceDefs.h |
| +++ b/src/IceDefs.h |
| @@ -38,6 +38,15 @@ |
| #include "llvm/Support/ELF.h" |
| #include "llvm/Support/raw_ostream.h" |
| +// TODO(stichnot): Define ATTRIBUTE_TLS as thread_local after all |
| +// compilers support that C++11 keyword. In particular, MacOS 10.6 |
| +// does not support it. |
| +#if defined (_MSC_VER) |
| +#define ATTRIBUTE_TLS __declspec(thread) |
| +#else // !_MSC_VER |
| +#define ATTRIBUTE_TLS __thread |
| +#endif // !_MSC_VER |
|
JF
2015/01/23 18:17:55
SUBZERO_ATTRIBUTE_TLS
Jim Stichnoth
2015/01/23 18:22:30
Done (using ICE_ATTRIBUTE_TLS instead).
|
| + |
| namespace Ice { |
| class Assembler; |