summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/bounds_check_elimination.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-02-19 18:21:24 -0800
committerAndreas Gampe <agampe@google.com>2015-02-24 15:57:15 -0800
commit7c3952f423b8213083d60596a5f0bf4237ca3f7b (patch)
tree40cbc6d30e02ab5edd8598d0f811b62f5c6045ba /compiler/optimizing/bounds_check_elimination.h
parent354d58ba776866ea7b1c71f0d0848d5aaa013ae3 (diff)
downloadandroid_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.tar.gz
android_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.tar.bz2
android_art-7c3952f423b8213083d60596a5f0bf4237ca3f7b.zip
ART: Add -Wunused
Until the global CFLAGS are fixed, add Wunused. Fix declarations in the optimizing compiler. Change-Id: Ic4553f08e809dc54f3d82af57ac592622c98e000
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.h')
-rw-r--r--compiler/optimizing/bounds_check_elimination.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.h b/compiler/optimizing/bounds_check_elimination.h
index 05cb185ed7..9e98ccf4b7 100644
--- a/compiler/optimizing/bounds_check_elimination.h
+++ b/compiler/optimizing/bounds_check_elimination.h
@@ -23,10 +23,13 @@ namespace art {
class BoundsCheckElimination : public HOptimization {
public:
- explicit BoundsCheckElimination(HGraph* graph) : HOptimization(graph, true, "BCE") {}
+ explicit BoundsCheckElimination(HGraph* graph)
+ : HOptimization(graph, true, kBoundsCheckEliminiationPassName) {}
void Run() OVERRIDE;
+ static constexpr const char* kBoundsCheckEliminiationPassName = "BCE";
+
private:
DISALLOW_COPY_AND_ASSIGN(BoundsCheckElimination);
};