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

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: Add llvm:: prefix 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
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 #include "llvm/ADT/ilist_node.h" 31 #include "llvm/ADT/ilist_node.h"
32 #include "llvm/ADT/iterator_range.h" 32 #include "llvm/ADT/iterator_range.h"
33 #include "llvm/ADT/SmallBitVector.h" 33 #include "llvm/ADT/SmallBitVector.h"
34 #include "llvm/ADT/SmallVector.h" 34 #include "llvm/ADT/SmallVector.h"
35 #include "llvm/ADT/STLExtras.h" 35 #include "llvm/ADT/STLExtras.h"
36 #include "llvm/Support/Allocator.h" 36 #include "llvm/Support/Allocator.h"
37 #include "llvm/Support/Casting.h" 37 #include "llvm/Support/Casting.h"
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 #include "IceTLS.h"
42 // compilers support that C++11 keyword. In particular, MacOS 10.6
43 // does not support it.
44 #if defined (_MSC_VER)
45 #define ICE_ATTRIBUTE_TLS __declspec(thread)
46 #else // !_MSC_VER
47 #define ICE_ATTRIBUTE_TLS __thread
48 #endif // !_MSC_VER
49 42
50 namespace Ice { 43 namespace Ice {
51 44
52 class Assembler; 45 class Assembler;
53 class Cfg; 46 class Cfg;
54 class CfgNode; 47 class CfgNode;
55 class Constant; 48 class Constant;
56 class ELFObjectWriter; 49 class ELFObjectWriter;
57 class ELFStreamer; 50 class ELFStreamer;
58 class FunctionDeclaration; 51 class FunctionDeclaration;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return llvm::make_range(Container.rbegin(), Container.rend()); 170 return llvm::make_range(Container.rbegin(), Container.rend());
178 } 171 }
179 template <typename T> 172 template <typename T>
180 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 173 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
181 return llvm::make_range(Container.rbegin(), Container.rend()); 174 return llvm::make_range(Container.rbegin(), Container.rend());
182 } 175 }
183 176
184 } // end of namespace Ice 177 } // end of namespace Ice
185 178
186 #endif // SUBZERO_SRC_ICEDEFS_H 179 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698