003 File Manager
Current Path:
/usr/src/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc
usr
/
src
/
contrib
/
llvm-project
/
llvm
/
lib
/
Target
/
ARM
/
MCTargetDesc
/
📁
..
📄
ARMAddressingModes.h
(25.43 KB)
📄
ARMAsmBackend.cpp
(48.4 KB)
📄
ARMAsmBackend.h
(3.09 KB)
📄
ARMAsmBackendDarwin.h
(1.35 KB)
📄
ARMAsmBackendELF.h
(1008 B)
📄
ARMAsmBackendWinCOFF.h
(912 B)
📄
ARMBaseInfo.h
(13.92 KB)
📄
ARMELFObjectWriter.cpp
(9.97 KB)
📄
ARMELFStreamer.cpp
(49.31 KB)
📄
ARMFixupKinds.h
(4.07 KB)
📄
ARMInstPrinter.cpp
(57.09 KB)
📄
ARMInstPrinter.h
(16.32 KB)
📄
ARMMCAsmInfo.cpp
(3.33 KB)
📄
ARMMCAsmInfo.h
(1.37 KB)
📄
ARMMCCodeEmitter.cpp
(73.24 KB)
📄
ARMMCExpr.cpp
(1.16 KB)
📄
ARMMCExpr.h
(2.24 KB)
📄
ARMMCTargetDesc.cpp
(13.95 KB)
📄
ARMMCTargetDesc.h
(4.47 KB)
📄
ARMMachORelocationInfo.cpp
(1.45 KB)
📄
ARMMachObjectWriter.cpp
(19.16 KB)
📄
ARMTargetStreamer.cpp
(12.38 KB)
📄
ARMUnwindOpAsm.cpp
(6.86 KB)
📄
ARMUnwindOpAsm.h
(2.45 KB)
📄
ARMWinCOFFObjectWriter.cpp
(3.25 KB)
📄
ARMWinCOFFStreamer.cpp
(1.63 KB)
Editing: ARMMachORelocationInfo.cpp
//===- ARMMachORelocationInfo.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 "ARMMCExpr.h" #include "MCTargetDesc/ARMMCTargetDesc.h" #include "llvm-c/Disassembler.h" #include "llvm/MC/MCDisassembler/MCRelocationInfo.h" #include "llvm/MC/MCExpr.h" using namespace llvm; namespace { class ARMMachORelocationInfo : public MCRelocationInfo { public: ARMMachORelocationInfo(MCContext &Ctx) : MCRelocationInfo(Ctx) {} const MCExpr *createExprForCAPIVariantKind(const MCExpr *SubExpr, unsigned VariantKind) override { switch(VariantKind) { case LLVMDisassembler_VariantKind_ARM_HI16: return ARMMCExpr::createUpper16(SubExpr, Ctx); case LLVMDisassembler_VariantKind_ARM_LO16: return ARMMCExpr::createLower16(SubExpr, Ctx); default: return MCRelocationInfo::createExprForCAPIVariantKind(SubExpr, VariantKind); } } }; } // end anonymous namespace /// createARMMachORelocationInfo - Construct an ARM Mach-O RelocationInfo. MCRelocationInfo *llvm::createARMMachORelocationInfo(MCContext &Ctx) { return new ARMMachORelocationInfo(Ctx); }
Upload File
Create Folder