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

Side by Side Diff: src/IceGlobalInits.h

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. Created 5 years, 6 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/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"
21 #include "IceGlobalContext.h"
22 #include "IceTypes.h"
23 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord.
24 #include "llvm/IR/CallingConv.h"
25 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes.
26
20 #include <memory> 27 #include <memory>
21 #include <utility> 28 #include <utility>
22 29
23 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord.
24 #include "llvm/IR/CallingConv.h"
25 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes.
26
27 #include "IceDefs.h"
28 #include "IceTypes.h"
29
30 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling 30 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling
31 // conventions and linkage types. 31 // conventions and linkage types.
32 32
33 namespace Ice { 33 namespace Ice {
34 34
35 /// Base class for global variable and function declarations. 35 /// Base class for global variable and function declarations.
36 class GlobalDeclaration { 36 class GlobalDeclaration {
37 GlobalDeclaration() = delete; 37 GlobalDeclaration() = delete;
38 GlobalDeclaration(const GlobalDeclaration &) = delete; 38 GlobalDeclaration(const GlobalDeclaration &) = delete;
39 GlobalDeclaration &operator=(const GlobalDeclaration &) = delete; 39 GlobalDeclaration &operator=(const GlobalDeclaration &) = delete;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 template <class StreamType> 347 template <class StreamType>
348 inline StreamType &operator<<(StreamType &Stream, 348 inline StreamType &operator<<(StreamType &Stream,
349 const GlobalDeclaration &Addr) { 349 const GlobalDeclaration &Addr) {
350 Addr.dump(Stream); 350 Addr.dump(Stream);
351 return Stream; 351 return Stream;
352 } 352 }
353 353
354 } // end of namespace Ice 354 } // end of namespace Ice
355 355
356 #endif // SUBZERO_SRC_ICEGLOBALINITS_H 356 #endif // SUBZERO_SRC_ICEGLOBALINITS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698