diff options
| author | vvvv <[email protected]> | 2024-02-06 20:01:22 +0300 |
|---|---|---|
| committer | Alexander Smirnov <[email protected]> | 2024-02-09 19:18:27 +0300 |
| commit | ee2b7fbda052aa09b6fdb83b8c6f0305fef3e193 (patch) | |
| tree | 102765416c3866bde98a82facc7752d329ee0226 /contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp | |
| parent | 7494ca32d3a5aca00b7ac527b5f127989335102c (diff) | |
llvm16 targets
Diffstat (limited to 'contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp')
| -rw-r--r-- | contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp b/contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp new file mode 100644 index 00000000000..137c4468008 --- /dev/null +++ b/contrib/libs/llvm16/lib/MC/MCDisassembler/MCRelocationInfo.cpp @@ -0,0 +1,30 @@ +//===-- MCRelocationInfo.cpp ----------------------------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#include "llvm/MC/MCDisassembler/MCRelocationInfo.h" +#include "llvm-c/DisassemblerTypes.h" +#include "llvm/MC/TargetRegistry.h" + +using namespace llvm; + +MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {} + +MCRelocationInfo::~MCRelocationInfo() = default; + +const MCExpr * +MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr, + unsigned VariantKind) { + if (VariantKind != LLVMDisassembler_VariantKind_None) + return nullptr; + return SubExpr; +} + +MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT, + MCContext &Ctx) { + return new MCRelocationInfo(Ctx); +} |
