OLD | NEW |
1 //===- subzero/src/IceGlobalInits.h - Global declarations -------*- C++ -*-===// | 1 //===- subzero/src/IceGlobalInits.h - Global declarations -------*- 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 the representation of function declarations, | 10 // This file declares the representation of function declarations, |
11 // global variable declarations, and the corresponding variable | 11 // global variable declarations, and the corresponding variable |
12 // initializers in Subzero. Global variable initializers are | 12 // initializers in Subzero. Global variable initializers are |
13 // represented as a sequence of simple initializers. | 13 // represented as a sequence of simple initializers. |
14 // | 14 // |
15 //===----------------------------------------------------------------------===// | 15 //===----------------------------------------------------------------------===// |
16 | 16 |
17 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H | 17 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H |
18 #define SUBZERO_SRC_ICEGLOBALINITS_H | 18 #define SUBZERO_SRC_ICEGLOBALINITS_H |
19 | 19 |
20 #include "IceDefs.h" | 20 #include "IceDefs.h" |
21 #include "IceGlobalContext.h" | 21 #include "IceGlobalContext.h" |
22 #include "IceTypes.h" | 22 #include "IceTypes.h" |
| 23 |
| 24 #pragma clang diagnostic push |
| 25 #pragma clang diagnostic ignored "-Wunused-parameter" |
23 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. | 26 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. |
24 #include "llvm/IR/CallingConv.h" | 27 #include "llvm/IR/CallingConv.h" |
25 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. | 28 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. |
| 29 #pragma clang diagnostic pop |
26 | 30 |
27 #include <memory> | 31 #include <memory> |
28 #include <utility> | 32 #include <utility> |
29 | 33 |
30 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling | 34 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling |
31 // conventions and linkage types. | 35 // conventions and linkage types. |
32 | 36 |
33 namespace Ice { | 37 namespace Ice { |
34 | 38 |
35 /// Base class for global variable and function declarations. | 39 /// Base class for global variable and function declarations. |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 template <class StreamType> | 351 template <class StreamType> |
348 inline StreamType &operator<<(StreamType &Stream, | 352 inline StreamType &operator<<(StreamType &Stream, |
349 const GlobalDeclaration &Addr) { | 353 const GlobalDeclaration &Addr) { |
350 Addr.dump(Stream); | 354 Addr.dump(Stream); |
351 return Stream; | 355 return Stream; |
352 } | 356 } |
353 | 357 |
354 } // end of namespace Ice | 358 } // end of namespace Ice |
355 | 359 |
356 #endif // SUBZERO_SRC_ICEGLOBALINITS_H | 360 #endif // SUBZERO_SRC_ICEGLOBALINITS_H |
OLD | NEW |