| 1 | //=-- LoongArchTargetObjectFile.cpp - LoongArch Object Info -------*- C++ -*-=// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "LoongArchTargetObjectFile.h" |
| 10 | #include "MCTargetDesc/LoongArchMCAsmInfo.h" |
| 11 | |
| 12 | using namespace llvm; |
| 13 | |
| 14 | const MCExpr *LoongArchELFTargetObjectFile::getDebugThreadLocalSymbol( |
| 15 | const MCSymbol *Sym) const { |
| 16 | return MCSpecifierExpr::create(Expr: MCSymbolRefExpr::create(Symbol: Sym, Ctx&: getContext()), |
| 17 | S: LoongArchMCExpr::VK_DTPREL, Ctx&: getContext()); |
| 18 | } |
| 19 |