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

Side by Side Diff: src/IceConverter.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase 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
« no previous file with comments | « src/IceCompiler.h ('k') | src/IceDefs.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/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===// 1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- 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 LLVM to ICE converter. 10 // This file declares the LLVM to ICE converter.
(...skipping 15 matching lines...) Expand all
26 26
27 class Converter : public Translator { 27 class Converter : public Translator {
28 Converter() = delete; 28 Converter() = delete;
29 Converter(const Converter &) = delete; 29 Converter(const Converter &) = delete;
30 Converter &operator=(const Converter &) = delete; 30 Converter &operator=(const Converter &) = delete;
31 31
32 public: 32 public:
33 Converter(llvm::Module *Mod, GlobalContext *Ctx) 33 Converter(llvm::Module *Mod, GlobalContext *Ctx)
34 : Translator(Ctx), Mod(Mod) {} 34 : Translator(Ctx), Mod(Mod) {}
35 35
36 ~Converter() {} 36 ~Converter() = default;
37 37
38 /// Converts the LLVM Module to ICE. Sets exit status to false if successful, 38 /// Converts the LLVM Module to ICE. Sets exit status to false if successful,
39 /// true otherwise. 39 /// true otherwise.
40 void convertToIce(); 40 void convertToIce();
41 41
42 llvm::Module *getModule() const { return Mod; } 42 llvm::Module *getModule() const { return Mod; }
43 43
44 // Returns the global declaration associated with the corresponding 44 // Returns the global declaration associated with the corresponding
45 // global value V. If no such global address, generates fatal error. 45 // global value V. If no such global address, generates fatal error.
46 GlobalDeclaration *getGlobalDeclaration(const llvm::GlobalValue *V); 46 GlobalDeclaration *getGlobalDeclaration(const llvm::GlobalValue *V);
(...skipping 19 matching lines...) Expand all
66 // Converts globals to ICE, and then machine code. 66 // Converts globals to ICE, and then machine code.
67 void convertGlobals(llvm::Module *Mod); 67 void convertGlobals(llvm::Module *Mod);
68 68
69 // Installs global declarations into GlobalDeclarationMap. 69 // Installs global declarations into GlobalDeclarationMap.
70 void installGlobalDeclarations(llvm::Module *Mod); 70 void installGlobalDeclarations(llvm::Module *Mod);
71 }; 71 };
72 72
73 } // end of namespace ICE. 73 } // end of namespace ICE.
74 74
75 #endif // SUBZERO_SRC_ICECONVERTER_H 75 #endif // SUBZERO_SRC_ICECONVERTER_H
OLDNEW
« no previous file with comments | « src/IceCompiler.h ('k') | src/IceDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698