diff options
Diffstat (limited to 'source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp')
-rw-r--r-- | source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp b/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp index f3a9ca570a4ac..c77fa04fc7d77 100644 --- a/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp +++ b/source/Plugins/Instruction/PPC64/EmulateInstructionPPC64.cpp @@ -1,9 +1,8 @@ //===-- EmulateInstructionPPC64.cpp ------------------------------*- C++-*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -56,23 +55,15 @@ EmulateInstruction * EmulateInstructionPPC64::CreateInstance(const ArchSpec &arch, InstructionType inst_type) { if (EmulateInstructionPPC64::SupportsEmulatingInstructionsOfTypeStatic( - inst_type)) { - if (arch.GetTriple().getArch() == llvm::Triple::ppc64 || - arch.GetTriple().getArch() == llvm::Triple::ppc64le) { + inst_type)) + if (arch.GetTriple().isPPC64()) return new EmulateInstructionPPC64(arch); - } - } return nullptr; } bool EmulateInstructionPPC64::SetTargetTriple(const ArchSpec &arch) { - if (arch.GetTriple().getArch() == llvm::Triple::ppc64) - return true; - else if (arch.GetTriple().getArch() == llvm::Triple::ppc64le) - return true; - - return false; + return arch.GetTriple().isPPC64(); } static bool LLDBTableGetRegisterInfo(uint32_t reg_num, RegisterInfo ®_info) { |