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

Side by Side Diff: src/IceTranslator.h

Issue 1281003003: Subzero: Fix a memory leak. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Use default instead of {} Created 5 years, 4 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/IceConverter.cpp ('k') | src/IceTranslator.cpp » ('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/IceTranslator.h - ICE to machine code --------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- 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 /// \file 10 /// \file
(...skipping 23 matching lines...) Expand all
34 /// other intermediate representations down to ICE, and then call the 34 /// other intermediate representations down to ICE, and then call the
35 /// appropriate (inherited) methods to convert ICE into machine instructions. 35 /// appropriate (inherited) methods to convert ICE into machine instructions.
36 class Translator { 36 class Translator {
37 Translator() = delete; 37 Translator() = delete;
38 Translator(const Translator &) = delete; 38 Translator(const Translator &) = delete;
39 Translator &operator=(const Translator &) = delete; 39 Translator &operator=(const Translator &) = delete;
40 40
41 public: 41 public:
42 explicit Translator(GlobalContext *Ctx); 42 explicit Translator(GlobalContext *Ctx);
43 43
44 ~Translator(); 44 virtual ~Translator() = default;
45 const ErrorCode &getErrorStatus() const { return ErrorStatus; } 45 const ErrorCode &getErrorStatus() const { return ErrorStatus; }
46 46
47 GlobalContext *getContext() const { return Ctx; } 47 GlobalContext *getContext() const { return Ctx; }
48 48
49 const ClFlags &getFlags() const { return Ctx->getFlags(); } 49 const ClFlags &getFlags() const { return Ctx->getFlags(); }
50 50
51 /// Translates the constructed ICE function Fcn to machine code. 51 /// Translates the constructed ICE function Fcn to machine code.
52 /// Takes ownership of Func. 52 /// Takes ownership of Func.
53 void translateFcn(std::unique_ptr<Cfg> Func); 53 void translateFcn(std::unique_ptr<Cfg> Func);
54 54
(...skipping 16 matching lines...) Expand all
71 protected: 71 protected:
72 GlobalContext *Ctx; 72 GlobalContext *Ctx;
73 uint32_t NextSequenceNumber; 73 uint32_t NextSequenceNumber;
74 /// ErrorCode of the translation. 74 /// ErrorCode of the translation.
75 ErrorCode ErrorStatus; 75 ErrorCode ErrorStatus;
76 }; 76 };
77 77
78 } // end of namespace Ice 78 } // end of namespace Ice
79 79
80 #endif // SUBZERO_SRC_ICETRANSLATOR_H 80 #endif // SUBZERO_SRC_ICETRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698