summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler_thumb_test.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-07-30 08:57:50 -0700
committer Andreas Gampe <agampe@google.com> 2015-07-30 08:57:50 -0700
commitc60e1b755c5632dfeb04c333489ede52ee5c945f (patch)
tree9582a0ffc99e4ad11dcd5d95dd97b09bc6acc5bf /compiler/utils/assembler_thumb_test.cc
parent7b926cdacc2b67241bc9cb5f2d4b04b13ca79d0e (diff)
ART: Use __ANDROID__ instead of HAVE_ANDROID_OS
Use the proper define. Change-Id: I71e291ac25f5d5f0187ac9b6ef2d6872f19e6085
Diffstat (limited to 'compiler/utils/assembler_thumb_test.cc')
-rw-r--r--compiler/utils/assembler_thumb_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/utils/assembler_thumb_test.cc b/compiler/utils/assembler_thumb_test.cc
index 20f61f942b..cb01cea8ef 100644
--- a/compiler/utils/assembler_thumb_test.cc
+++ b/compiler/utils/assembler_thumb_test.cc
@@ -32,7 +32,7 @@ namespace arm {
// Include results file (generated manually)
#include "assembler_thumb_test_expected.cc.inc"
-#ifndef HAVE_ANDROID_OS
+#ifndef __ANDROID__
// This controls whether the results are printed to the
// screen or compared against the expected output.
// To generate new expected output, set this to true and
@@ -72,7 +72,7 @@ void InitResults() {
}
std::string GetToolsDir() {
-#ifndef HAVE_ANDROID_OS
+#ifndef __ANDROID__
// This will only work on the host. There is no as, objcopy or objdump on the device.
static std::string toolsdir;
@@ -89,7 +89,7 @@ std::string GetToolsDir() {
}
void DumpAndCheck(std::vector<uint8_t>& code, const char* testname, const char* const* results) {
-#ifndef HAVE_ANDROID_OS
+#ifndef __ANDROID__
static std::string toolsdir = GetToolsDir();
ScratchFile file;