summaryrefslogtreecommitdiffstats
path: root/compiler/utils
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-10-08 17:27:48 -0700
committerIan Rogers <irogers@google.com>2014-10-09 08:25:34 -0700
commit0279ebb3efd653e6bb255470c99d26949c7bcd95 (patch)
treed58b29754f7b3c88616e6e4d6c19346821d244ae /compiler/utils
parentf1f05d303988a5c071c87b760056be8358276c94 (diff)
downloadart-0279ebb3efd653e6bb255470c99d26949c7bcd95.zip
art-0279ebb3efd653e6bb255470c99d26949c7bcd95.tar.gz
art-0279ebb3efd653e6bb255470c99d26949c7bcd95.tar.bz2
Tidy ELF builder.
Don't do "if (ptr)". Use const. Use DISALLOW_COPY_AND_ASSIGN. Avoid public member variables. Move ValueObject to base and use in ELF builder. Tidy VectorOutputStream to not use non-const reference arguments. Change-Id: I2c727c3fc61769c3726de7cfb68b2d6eb4477e53
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/arena_object.h (renamed from compiler/utils/allocation.h)17
1 files changed, 3 insertions, 14 deletions
diff --git a/compiler/utils/allocation.h b/compiler/utils/arena_object.h
index b0947ca..50909f7 100644
--- a/compiler/utils/allocation.h
+++ b/compiler/utils/arena_object.h
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef ART_COMPILER_UTILS_ALLOCATION_H_
-#define ART_COMPILER_UTILS_ALLOCATION_H_
+#ifndef ART_COMPILER_UTILS_ARENA_OBJECT_H_
+#define ART_COMPILER_UTILS_ARENA_OBJECT_H_
#include "arena_allocator.h"
#include "base/logging.h"
@@ -34,17 +34,6 @@ class ArenaObject {
}
};
-class ValueObject {
- public:
- void* operator new(size_t size) {
- LOG(FATAL) << "UNREACHABLE";
- abort();
- }
- void operator delete(void*, size_t) {
- LOG(FATAL) << "UNREACHABLE";
- }
-};
-
} // namespace art
-#endif // ART_COMPILER_UTILS_ALLOCATION_H_
+#endif // ART_COMPILER_UTILS_ARENA_OBJECT_H_