24 lines
796 B
C++
24 lines
796 B
C++
//===-- TargetOptionsCommandFlags.h ----------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Helper to create TargetOptions from command line flags.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/ADT/Optional.h"
|
|
#include "llvm/Support/CodeGen.h"
|
|
#include "llvm/Target/TargetOptions.h"
|
|
|
|
namespace lld {
|
|
llvm::TargetOptions InitTargetOptionsFromCodeGenFlags();
|
|
llvm::Optional<llvm::CodeModel::Model> GetCodeModelFromCMModel();
|
|
std::string GetCPUStr();
|
|
std::vector<std::string> GetMAttrs();
|
|
}
|