ARM64: Fix IsAdrpPatch().
kMethodRelative patch can be an ADRP patch. Note that this
minor bug had no real consequences as the patch would later
be filtered out in NeedsErratum843419Thunk() because we
generate the instruction sequence ADRP+ADD in this case.
Also change the output for kDirectAddress from "Direct" to
"DirectAddress". This kind is currently unused in checker
tests.
Test: Rely on TreeHugger.
Bug: 30627598
Change-Id: I4e7c033aa010bbff53a554bfadd2ba0f03f69528
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc
index bde7f2c..6899910 100644
--- a/compiler/optimizing/nodes.cc
+++ b/compiler/optimizing/nodes.cc
@@ -2642,7 +2642,7 @@
case HInvokeStaticOrDirect::MethodLoadKind::kBootImageLinkTimePcRelative:
return os << "BootImageLinkTimePcRelative";
case HInvokeStaticOrDirect::MethodLoadKind::kDirectAddress:
- return os << "Direct";
+ return os << "DirectAddress";
case HInvokeStaticOrDirect::MethodLoadKind::kDexCachePcRelative:
return os << "DexCachePcRelative";
case HInvokeStaticOrDirect::MethodLoadKind::kDexCacheViaMethod: