1 //===-- MCTargetOptionsCommandFlags.h --------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains machine code-specific flags that are shared between
10 // different command line tools.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
15 #define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
16 
17 #include "llvm/ADT/Optional.h"
18 #include <string>
19 
20 namespace llvm {
21 
22 class MCTargetOptions;
23 enum class EmitDwarfUnwindType;
24 
25 namespace mc {
26 
27 bool getRelaxAll();
28 Optional<bool> getExplicitRelaxAll();
29 
30 bool getIncrementalLinkerCompatible();
31 
32 int getDwarfVersion();
33 
34 bool getDwarf64();
35 
36 EmitDwarfUnwindType getEmitDwarfUnwind();
37 
38 bool getShowMCInst();
39 
40 bool getFatalWarnings();
41 
42 bool getNoWarn();
43 
44 bool getNoDeprecatedWarn();
45 
46 bool getNoTypeCheck();
47 
48 std::string getABIName();
49 
50 /// Create this object with static storage to register mc-related command
51 /// line options.
52 struct RegisterMCTargetOptionsFlags {
53   RegisterMCTargetOptionsFlags();
54 };
55 
56 MCTargetOptions InitMCTargetOptionsFromFlags();
57 
58 } // namespace mc
59 
60 } // namespace llvm
61 
62 #endif
63