123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #pragma once
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-parameter"
- #endif
- #ifndef LLVM_MC_MCTARGETOPTIONS_H
- #define LLVM_MC_MCTARGETOPTIONS_H
- #include "llvm/ADT/ArrayRef.h"
- #include "llvm/Support/Compression.h"
- #include <string>
- #include <vector>
- namespace llvm {
- enum class ExceptionHandling {
- None,
- DwarfCFI,
- SjLj,
- ARM,
- WinEH,
- Wasm,
- AIX,
- };
- enum class EmitDwarfUnwindType {
- Always,
- NoCompactUnwind,
- Default,
- };
- class StringRef;
- class MCTargetOptions {
- public:
- enum AsmInstrumentation {
- AsmInstrumentationNone,
- AsmInstrumentationAddress
- };
- bool MCRelaxAll : 1;
- bool MCNoExecStack : 1;
- bool MCFatalWarnings : 1;
- bool MCNoWarn : 1;
- bool MCNoDeprecatedWarn : 1;
- bool MCNoTypeCheck : 1;
- bool MCSaveTempLabels : 1;
- bool MCIncrementalLinkerCompatible : 1;
- bool ShowMCEncoding : 1;
- bool ShowMCInst : 1;
- bool AsmVerbose : 1;
-
- bool PreserveAsmComments : 1;
- bool Dwarf64 : 1;
- EmitDwarfUnwindType EmitDwarfUnwind;
- int DwarfVersion = 0;
- enum DwarfDirectory {
-
- DisableDwarfDirectory,
-
-
- EnableDwarfDirectory,
-
- DefaultDwarfDirectory
- };
- DwarfDirectory MCUseDwarfDirectory;
- std::string ABIName;
- std::string AssemblyLanguage;
- std::string SplitDwarfFile;
- std::string AsSecureLogFile;
- const char *Argv0 = nullptr;
- ArrayRef<std::string> CommandLineArgs;
-
-
- std::vector<std::string> IASSearchPaths;
- MCTargetOptions();
-
-
-
- StringRef getABIName() const;
-
-
-
- StringRef getAssemblyLanguage() const;
- };
- }
- #endif
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif
|