From e6d1592492a3a379186bfb02bd0f4eda0669c0d5 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 20:50:12 +0000 Subject: Vendor import of stripped llvm trunk r366426 (just before the release_90 branch point): https://llvm.org/svn/llvm-project/llvm/trunk@366426 --- lib/MC/MCDisassembler/Disassembler.h | 41 +++++++++++++++++------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'lib/MC/MCDisassembler/Disassembler.h') diff --git a/lib/MC/MCDisassembler/Disassembler.h b/lib/MC/MCDisassembler/Disassembler.h index f638fdc781d7..e5aab53a7613 100644 --- a/lib/MC/MCDisassembler/Disassembler.h +++ b/lib/MC/MCDisassembler/Disassembler.h @@ -1,9 +1,8 @@ //===------------- Disassembler.h - LLVM Disassembler -----------*- 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 // //===----------------------------------------------------------------------===// // @@ -83,24 +82,22 @@ public: SmallString<128> CommentsToEmit; raw_svector_ostream CommentStream; - LLVMDisasmContext(std::string tripleName, void *disInfo, int tagType, - LLVMOpInfoCallback getOpInfo, - LLVMSymbolLookupCallback symbolLookUp, - const Target *theTarget, const MCAsmInfo *mAI, - const MCRegisterInfo *mRI, const MCSubtargetInfo *mSI, - const MCInstrInfo *mII, llvm::MCContext *ctx, - const MCDisassembler *disAsm, MCInstPrinter *iP) - : TripleName(std::move(tripleName)), DisInfo(disInfo), TagType(tagType), - GetOpInfo(getOpInfo), SymbolLookUp(symbolLookUp), TheTarget(theTarget), - Options(0), CommentStream(CommentsToEmit) { - MAI.reset(mAI); - MRI.reset(mRI); - MSI.reset(mSI); - MII.reset(mII); - Ctx.reset(ctx); - DisAsm.reset(disAsm); - IP.reset(iP); - } + LLVMDisasmContext(std::string TripleName, void *DisInfo, int TagType, + LLVMOpInfoCallback GetOpInfo, + LLVMSymbolLookupCallback SymbolLookUp, + const Target *TheTarget, + std::unique_ptr &&MAI, + std::unique_ptr &&MRI, + std::unique_ptr &&MSI, + std::unique_ptr &&MII, + std::unique_ptr &&Ctx, + std::unique_ptr &&DisAsm, + std::unique_ptr &&IP) + : TripleName(std::move(TripleName)), DisInfo(DisInfo), TagType(TagType), + GetOpInfo(GetOpInfo), SymbolLookUp(SymbolLookUp), TheTarget(TheTarget), + MAI(std::move(MAI)), MRI(std::move(MRI)), MSI(std::move(MSI)), + MII(std::move(MII)), Ctx(std::move(Ctx)), DisAsm(std::move(DisAsm)), + IP(std::move(IP)), Options(0), CommentStream(CommentsToEmit) {} const std::string &getTripleName() const { return TripleName; } void *getDisInfo() const { return DisInfo; } int getTagType() const { return TagType; } -- cgit v1.2.3