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

Unified Diff: src/IceMemoryRegion.h

Issue 643903006: Subzero: Do class definition cleanups for assembler files too. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: stuff 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceMemoryRegion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceMemoryRegion.h
diff --git a/src/IceMemoryRegion.h b/src/IceMemoryRegion.h
index 2a55a41861ef607f7e573e270e1c41c269382d5a..b1069a9e3d82e432aa18c2cfe24a45dfbb5341f5 100644
--- a/src/IceMemoryRegion.h
+++ b/src/IceMemoryRegion.h
@@ -1,10 +1,11 @@
+//===- subzero/src/IceMemoryRegion.h - Memory region ------------*- C++ -*-===//
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Modified by the Subzero authors.
//
-//===- subzero/src/IceMemoryRegion.h - Memory region ------------*- C++ -*-===//
+//===----------------------------------------------------------------------===//
//
// The Subzero Code Generator
//
@@ -30,14 +31,10 @@ namespace Ice {
// of the region.
class MemoryRegion {
public:
+ MemoryRegion(const MemoryRegion &other) = default;
+ MemoryRegion &operator=(const MemoryRegion &other) = default;
MemoryRegion() : pointer_(NULL), size_(0) {}
MemoryRegion(void *pointer, size_t size) : pointer_(pointer), size_(size) {}
- MemoryRegion(const MemoryRegion &other) { *this = other; }
- MemoryRegion &operator=(const MemoryRegion &other) {
- pointer_ = other.pointer_;
- size_ = other.size_;
- return *this;
- }
void *pointer() const { return pointer_; }
size_t size() const { return size_; }
« no previous file with comments | « no previous file | src/IceMemoryRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698