1 //===-- TargetOptionsCommandFlags.h ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Helper to create TargetOptions from command line flags.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ADT/Optional.h"
15 #include "llvm/Support/CodeGen.h"
16 #include "llvm/Target/TargetOptions.h"
19 llvm::TargetOptions InitTargetOptionsFromCodeGenFlags();
20 llvm::Optional<llvm::CodeModel::Model> GetCodeModelFromCMModel();