aarch64.cpp 881 B

123456789101112131415161718192021222324252627282930
  1. //===---- aarch64.cpp - Generic JITLink aarch64 edge kinds, utilities -----===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // Generic utilities for graphs representing aarch64 objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "llvm/ExecutionEngine/JITLink/aarch64.h"
  13. #define DEBUG_TYPE "jitlink"
  14. namespace llvm {
  15. namespace jitlink {
  16. namespace aarch64 {
  17. const char *getEdgeKindName(Edge::Kind K) {
  18. switch (K) {
  19. case R_AARCH64_CALL26:
  20. return "R_AARCH64_CALL26";
  21. }
  22. return getGenericEdgeKindName(K);
  23. }
  24. } // namespace aarch64
  25. } // namespace jitlink
  26. } // namespace llvm