annotate lld/Common/TargetOptionsCommandFlags.cpp @ 259:011663b4a808

remove duplicate setjmp in return continuation
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 12 Oct 2023 15:52:37 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===-- TargetOptionsCommandFlags.cpp ---------------------------*- C++ -*-===//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #include "lld/Common/TargetOptionsCommandFlags.h"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
10 #include "llvm/CodeGen/CommandFlags.h"
150
anatofuz
parents:
diff changeset
11 #include "llvm/Target/TargetOptions.h"
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
12 #include "llvm/TargetParser/Triple.h"
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
13 #include <optional>
150
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() {
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
16 return llvm::codegen::InitTargetOptionsFromCodeGenFlags(llvm::Triple());
150
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
19 std::optional<llvm::Reloc::Model> lld::getRelocModelFromCMModel() {
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
20 return llvm::codegen::getExplicitRelocModel();
150
anatofuz
parents:
diff changeset
21 }
anatofuz
parents:
diff changeset
22
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
23 std::optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel() {
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
24 return llvm::codegen::getExplicitCodeModel();
150
anatofuz
parents:
diff changeset
25 }
anatofuz
parents:
diff changeset
26
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
27 std::string lld::getCPUStr() { return llvm::codegen::getCPUStr(); }
150
anatofuz
parents:
diff changeset
28
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
29 std::vector<std::string> lld::getMAttrs() { return llvm::codegen::getMAttrs(); }