diff options
author | Ian Rogers <irogers@google.com> | 2014-03-07 14:49:39 -0800 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-03-07 22:30:41 -0800 |
commit | 87f8b4cf0c1d6aab3eb5d1e99cc4e7cf175ef772 (patch) | |
tree | 2828105f52e2830842d4d62477bd1a613ae6b93f /compiler/driver/compiler_driver.h | |
parent | a54ece27b9bfd651fc3173bf43ca030652306b6e (diff) | |
download | art-87f8b4cf0c1d6aab3eb5d1e99cc4e7cf175ef772.zip art-87f8b4cf0c1d6aab3eb5d1e99cc4e7cf175ef772.tar.gz art-87f8b4cf0c1d6aab3eb5d1e99cc4e7cf175ef772.tar.bz2 |
Make clang the default compiler on host.
Motivation, GCC's compiler warnings are inferior to clang's. -Wthread-safety is
not supported by GCC starting with version 4.7. As this change only effects the
host, performance issues are an impact on host building and testing alone.
Fix clang gtest building on host with BUILD_HOST_64bit.
Fix clang build regressions caused by unused fields.
Fix x86-64 regression caused by requirement to fire-up quick compiler even in an
interpret-only environment. Long-term this code doesn't belong in the quick
compiler.
Change-Id: Ifc2b10177f40d0724cbbf8dab9653ac03cdd1cee
Diffstat (limited to 'compiler/driver/compiler_driver.h')
-rw-r--r-- | compiler/driver/compiler_driver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index 12463a9..817da17 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -564,8 +564,11 @@ class CompilerDriver { class ProfileData { public: ProfileData() : count_(0), method_size_(0), percent_(0) {} - ProfileData(std::string method_name, uint32_t count, uint32_t method_size, double percent) : + ProfileData(const std::string& method_name, uint32_t count, uint32_t method_size, double percent) : method_name_(method_name), count_(count), method_size_(method_size), percent_(percent) { + // TODO: currently method_size_ and count_ are unused. + UNUSED(method_size_); + UNUSED(count_); } bool IsAbove(double v) const { return percent_ >= v; } |