Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Side by Side Diff: src/IceDefs.h

Issue 872933002: Subzero: Second attempt at fixing MacOS 10.6 build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reformat to 80-columns Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares various useful types and classes that have 10 // This file declares various useful types and classes that have
(...skipping 27 matching lines...) Expand all
38 #include "llvm/Support/ELF.h" 38 #include "llvm/Support/ELF.h"
39 #include "llvm/Support/raw_ostream.h" 39 #include "llvm/Support/raw_ostream.h"
40 40
41 // TODO(stichnot): Define ICE_ATTRIBUTE_TLS as thread_local after all 41 // TODO(stichnot): Define ICE_ATTRIBUTE_TLS as thread_local after all
42 // compilers support that C++11 keyword. In particular, MacOS 10.6 42 // compilers support that C++11 keyword. In particular, MacOS 10.6
43 // does not support it. 43 // does not support it.
44 #if defined (_MSC_VER) 44 #if defined (_MSC_VER)
45 #define ICE_ATTRIBUTE_TLS __declspec(thread) 45 #define ICE_ATTRIBUTE_TLS __declspec(thread)
46 #else // !_MSC_VER 46 #else // !_MSC_VER
47 #define ICE_ATTRIBUTE_TLS __thread 47 #define ICE_ATTRIBUTE_TLS __thread
48 #endif // !_MSC_VER 48 #endif // !_MSC_VER
JF 2015/01/24 05:42:47 ICE_ATTRIBUTE_TLS is sad about being left out of I
Jim Stichnoth 2015/01/24 16:55:33 Whoops. I meant to remove ICE_ATTRIBUTE_TLS entir
49 49
50 #include "IceTLS.h"
51
50 namespace Ice { 52 namespace Ice {
51 53
52 class Assembler; 54 class Assembler;
53 class Cfg; 55 class Cfg;
54 class CfgNode; 56 class CfgNode;
55 class Constant; 57 class Constant;
56 class ELFObjectWriter; 58 class ELFObjectWriter;
57 class ELFStreamer; 59 class ELFStreamer;
58 class FunctionDeclaration; 60 class FunctionDeclaration;
59 class GlobalContext; 61 class GlobalContext;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return llvm::make_range(Container.rbegin(), Container.rend()); 179 return llvm::make_range(Container.rbegin(), Container.rend());
178 } 180 }
179 template <typename T> 181 template <typename T>
180 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 182 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
181 return llvm::make_range(Container.rbegin(), Container.rend()); 183 return llvm::make_range(Container.rbegin(), Container.rend());
182 } 184 }
183 185
184 } // end of namespace Ice 186 } // end of namespace Ice
185 187
186 #endif // SUBZERO_SRC_ICEDEFS_H 188 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | src/IceTLS.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698