xref: /llvm-project/llvm/lib/Target/RISCV/RISCVTargetObjectFile.cpp (revision 98bc25a0f2bf169ef13f4dfc8ad3cc863731a8e7)
1 //===-- RISCVTargetObjectFile.cpp - RISCV Object Info -----------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "RISCVTargetObjectFile.h"
11 #include "RISCVTargetMachine.h"
12 
13 using namespace llvm;
14 
15 void RISCVELFTargetObjectFile::Initialize(MCContext &Ctx,
16                                           const TargetMachine &TM) {
17   TargetLoweringObjectFileELF::Initialize(Ctx, TM);
18   InitializeELF(TM.Options.UseInitArray);
19 }
20