xref: /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/SystemZTargetObjectFile.cpp (revision a8d9bd3fa5855fe7583ed05946296ab6b9937d69)
1  //===-- SystemZTargetObjectFile.cpp - SystemZ Object Info -----------------===//
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 "SystemZTargetObjectFile.h"
10  #include "llvm/MC/MCExpr.h"
11  #include "llvm/MC/MCValue.h"
12  #include "llvm/Target/TargetMachine.h"
13  
14  using namespace llvm;
15  
16  const MCExpr *SystemZELFTargetObjectFile::getDebugThreadLocalSymbol(
17      const MCSymbol *Sym) const {
18    return MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
19  }
20