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

Side by Side Diff: src/IceConverter.cpp

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.h ('k') | src/IceTranslator.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.cpp - Converts LLVM to Ice ---------------===// 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===//
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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 648
649 // Converter from LLVM global variables to ICE. The entry point is the 649 // Converter from LLVM global variables to ICE. The entry point is the
650 // convertGlobalsToIce method. 650 // convertGlobalsToIce method.
651 // 651 //
652 // Note: this currently assumes that the given IR was verified to be 652 // Note: this currently assumes that the given IR was verified to be
653 // valid PNaCl bitcode. Othewise, the behavior is undefined. 653 // valid PNaCl bitcode. Othewise, the behavior is undefined.
654 class LLVM2ICEGlobalsConverter : public LLVM2ICEConverter { 654 class LLVM2ICEGlobalsConverter : public LLVM2ICEConverter {
655 LLVM2ICEGlobalsConverter() = delete; 655 LLVM2ICEGlobalsConverter() = delete;
656 LLVM2ICEGlobalsConverter(const LLVM2ICEGlobalsConverter &) = delete; 656 LLVM2ICEGlobalsConverter(const LLVM2ICEGlobalsConverter &) = delete;
657 LLVM2ICEGlobalsConverter & 657 LLVM2ICEGlobalsConverter &
658 operator-(const LLVM2ICEGlobalsConverter &) = delete; 658 operator=(const LLVM2ICEGlobalsConverter &) = delete;
659 659
660 public: 660 public:
661 explicit LLVM2ICEGlobalsConverter(Ice::Converter &Converter) 661 explicit LLVM2ICEGlobalsConverter(Ice::Converter &Converter)
662 : LLVM2ICEConverter(Converter) {} 662 : LLVM2ICEConverter(Converter) {}
663 663
664 /// Converts global variables, and their initializers into ICE 664 /// Converts global variables, and their initializers into ICE
665 /// global variable declarations, for module Mod. Returns the set of 665 /// global variable declarations, for module Mod. Returns the set of
666 /// converted declarations. 666 /// converted declarations.
667 std::unique_ptr<Ice::VariableDeclarationList> 667 std::unique_ptr<Ice::VariableDeclarationList>
668 convertGlobalsToIce(Module *Mod); 668 convertGlobalsToIce(Module *Mod);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 Ctx->pushTimer(TimerID, StackID); 905 Ctx->pushTimer(TimerID, StackID);
906 } 906 }
907 LLVM2ICEFunctionConverter FunctionConverter(*this); 907 LLVM2ICEFunctionConverter FunctionConverter(*this);
908 FunctionConverter.convertFunction(&I); 908 FunctionConverter.convertFunction(&I);
909 if (TimeThisFunction) 909 if (TimeThisFunction)
910 Ctx->popTimer(TimerID, StackID); 910 Ctx->popTimer(TimerID, StackID);
911 } 911 }
912 } 912 }
913 913
914 } // end of namespace Ice 914 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceConverter.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698