Bob Haarman | fbc229d | 2017-02-02 23:53:10 | [diff] [blame] | 1 | //===-- TargetOptionsCommandFlags.cpp ---------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Linker |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file exists as a place for global variables defined in LLVM's |
| 11 | // CodeGen/CommandFlags.h. By putting the resulting object file in |
| 12 | // an archive and linking with it, the definitions will automatically be |
| 13 | // included when needed and skipped when already present. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
Rui Ueyama | 3f85170 | 2017-10-02 21:00:41 | [diff] [blame^] | 17 | #include "lld/Common/TargetOptionsCommandFlags.h" |
Bob Haarman | fbc229d | 2017-02-02 23:53:10 | [diff] [blame] | 18 | |
| 19 | #include "llvm/CodeGen/CommandFlags.h" |
| 20 | #include "llvm/Target/TargetOptions.h" |
| 21 | |
| 22 | // Define an externally visible version of |
| 23 | // InitTargetOptionsFromCodeGenFlags, so that its functionality can be |
| 24 | // used without having to include llvm/CodeGen/CommandFlags.h, which |
| 25 | // would lead to multiple definitions of the command line flags. |
| 26 | llvm::TargetOptions lld::InitTargetOptionsFromCodeGenFlags() { |
| 27 | return ::InitTargetOptionsFromCodeGenFlags(); |
| 28 | } |
Martell Malone | 6b43b7a | 2017-02-28 23:43:26 | [diff] [blame] | 29 | |
Rafael Espindola | eaf1d56 | 2017-08-03 02:16:33 | [diff] [blame] | 30 | llvm::Optional<llvm::CodeModel::Model> lld::GetCodeModelFromCMModel() { |
| 31 | return getCodeModel(); |
Martell Malone | 6b43b7a | 2017-02-28 23:43:26 | [diff] [blame] | 32 | } |