1 //===- MCTargetOptions.h - MC Target Options -------------------*- 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 #ifndef LLVM_MC_MCTARGETOPTIONS_H
11 #define LLVM_MC_MCTARGETOPTIONS_H
19 class MCTargetOptions {
21 enum AsmInstrumentation {
22 AsmInstrumentationNone,
23 AsmInstrumentationAddress
26 /// Enables AddressSanitizer instrumentation at machine level.
27 bool SanitizeAddress : 1;
30 bool MCNoExecStack : 1;
31 bool MCFatalWarnings : 1;
33 bool MCSaveTempLabels : 1;
34 bool MCUseDwarfDirectory : 1;
35 bool MCIncrementalLinkerCompatible : 1;
36 bool ShowMCEncoding : 1;
40 /// getABIName - If this returns a non-empty string this represents the
41 /// textual name of the ABI that we want the backend to use, e.g. o32, or
43 StringRef getABIName() const;
48 inline bool operator==(const MCTargetOptions &LHS, const MCTargetOptions &RHS) {
49 #define ARE_EQUAL(X) LHS.X == RHS.X
50 return (ARE_EQUAL(SanitizeAddress) &&
51 ARE_EQUAL(MCRelaxAll) &&
52 ARE_EQUAL(MCNoExecStack) &&
53 ARE_EQUAL(MCFatalWarnings) &&
54 ARE_EQUAL(MCNoWarn) &&
55 ARE_EQUAL(MCSaveTempLabels) &&
56 ARE_EQUAL(MCUseDwarfDirectory) &&
57 ARE_EQUAL(MCIncrementalLinkerCompatible) &&
58 ARE_EQUAL(ShowMCEncoding) &&
59 ARE_EQUAL(ShowMCInst) &&
60 ARE_EQUAL(AsmVerbose) &&
61 ARE_EQUAL(DwarfVersion) &&
66 inline bool operator!=(const MCTargetOptions &LHS, const MCTargetOptions &RHS) {
70 } // end namespace llvm