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

Side by Side Diff: src/IceTranslator.h

Issue 622443002: Subzero: Change llvm::OwningPtr to C++11's std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove ErrorOr for now Created 6 years, 2 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/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 // This file declares the general driver class for translating ICE to 10 // This file declares the general driver class for translating ICE to
11 // machine code. 11 // machine code.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H 15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H
16 #define SUBZERO_SRC_ICETRANSLATOR_H 16 #define SUBZERO_SRC_ICETRANSLATOR_H
17 17
18 #include "llvm/ADT/OwningPtr.h" 18 #include <memory>
19 19
20 namespace llvm { 20 namespace llvm {
21 class Module; 21 class Module;
22 } 22 }
23 23
24 namespace Ice { 24 namespace Ice {
25 25
26 class ClFlags; 26 class ClFlags;
27 class Cfg; 27 class Cfg;
28 class GlobalContext; 28 class GlobalContext;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // otherwise. 68 // otherwise.
69 bool ErrorStatus; 69 bool ErrorStatus;
70 // Ideally, Func would be inside the methods that converts IR to 70 // Ideally, Func would be inside the methods that converts IR to
71 // functions. However, emitting the constant pool requires a valid 71 // functions. However, emitting the constant pool requires a valid
72 // Cfg object, so we need to defer deleting the last non-empty Cfg 72 // Cfg object, so we need to defer deleting the last non-empty Cfg
73 // object to emit the constant pool (via emitConstants). TODO: 73 // object to emit the constant pool (via emitConstants). TODO:
74 // Since all constants are globally pooled in the GlobalContext 74 // Since all constants are globally pooled in the GlobalContext
75 // object, change all Constant related functions to use 75 // object, change all Constant related functions to use
76 // GlobalContext instead of Cfg, and then make emitConstantPool use 76 // GlobalContext instead of Cfg, and then make emitConstantPool use
77 // that. 77 // that.
78 llvm::OwningPtr<Cfg> Func; 78 std::unique_ptr<Cfg> Func;
79 79
80 private: 80 private:
81 Translator(const Translator &) LLVM_DELETED_FUNCTION; 81 Translator(const Translator &) LLVM_DELETED_FUNCTION;
82 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION; 82 Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION;
83 }; 83 };
84 } 84 }
85 85
86 #endif // SUBZERO_SRC_ICETRANSLATOR_H 86 #endif // SUBZERO_SRC_ICETRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/IceTranslator.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698