Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.0 KiB
C++
Raw Permalink Normal View History

2017-02-02 23:53:10 +00:00
//===-- TargetOptionsCommandFlags.cpp ---------------------------*- C++ -*-===//
//
// 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
2017-02-02 23:53:10 +00:00
//
//===----------------------------------------------------------------------===//
2017-10-02 21:00:41 +00:00
#include "lld/Common/TargetOptionsCommandFlags.h"
2017-02-02 23:53:10 +00:00
#include "llvm/CodeGen/CommandFlags.h"
2017-02-02 23:53:10 +00:00
#include "llvm/Target/TargetOptions.h"
static llvm::codegen::RegisterCodeGenFlags CGF;
llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() {
return llvm::codegen::InitTargetOptionsFromCodeGenFlags();
2017-02-02 23:53:10 +00:00
}
llvm::Optional<llvm::Reloc::Model> lld::getRelocModelFromCMModel() {
return llvm::codegen::getExplicitRelocModel();
}
llvm::Optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel() {
return llvm::codegen::getExplicitCodeModel();
}
2018-01-30 18:18:59 +00:00
std::string lld::getCPUStr() { return llvm::codegen::getCPUStr(); }
std::vector<std::string> lld::getMAttrs() { return llvm::codegen::getMAttrs(); }