| //===-- AArch64MCExpr.cpp - AArch64 specific MC expression classes --------===// |
| // |
| // 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 "AArch64MCAsmInfo.h" |
| #include "llvm/MC/MCContext.h" |
| #include "llvm/MC/MCStreamer.h" |
| |
| using namespace llvm; |
| |
| const AArch64AuthMCExpr *AArch64AuthMCExpr::create(const MCExpr *Expr, |
| uint16_t Discriminator, |
| AArch64PACKey::ID Key, |
| bool HasAddressDiversity, |
| MCContext &Ctx, SMLoc Loc) { |
| return new (Ctx) |
| AArch64AuthMCExpr(Expr, Discriminator, Key, HasAddressDiversity, Loc); |
| } |