aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@arm.com>2014-11-12 10:54:02 +0000
committerAlexandre Rames <alexandre.rames@arm.com>2014-11-13 10:44:31 +0000
commit40167fa72adeae25442d1953b7a33a95512dbea0 (patch)
treed749a03cf23c6fd884a99feb063c442f2daa2df9
parent950d5087bf8346a16d24dbd56648864face3972d (diff)
downloadvixl-40167fa72adeae25442d1953b7a33a95512dbea0.tar.gz
Make vixl::Label::location() public.
We need to access this method in the optimizing compiler. This will be available upstream in the next VIXL release, but we need it now for incoming changes to the optimizing compiler. Change-Id: I728aab200966250eb514dd93bcd2241c02ada278
-rw-r--r--src/a64/assembler-a64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/a64/assembler-a64.h b/src/a64/assembler-a64.h
index 2cf2d545..f2dda8d9 100644
--- a/src/a64/assembler-a64.h
+++ b/src/a64/assembler-a64.h
@@ -590,6 +590,8 @@ class Label {
inline bool IsBound() const { return location_ >= 0; }
inline bool IsLinked() const { return !links_.empty(); }
+ inline ptrdiff_t location() const { return location_; }
+
private:
// The list of linked instructions is stored in a stack-like structure. We
// don't use std::stack directly because it's slow for the common case where
@@ -647,8 +649,6 @@ class Label {
std::stack<ptrdiff_t> * links_extended_;
};
- inline ptrdiff_t location() const { return location_; }
-
inline void Bind(ptrdiff_t location) {
// Labels can only be bound once.
VIXL_ASSERT(!IsBound());