diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-21 21:05:09 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-21 21:05:09 +0000 |
commit | d1b5bdaebdcdfc85854e6dac538bcc273b6a486a (patch) | |
tree | c02e41285e7b2c9f0f47589d3b16a28cbf1ff5c2 /include | |
parent | 9a3798632893c9fdec7e29afbdd98be6ef82a72a (diff) | |
download | llvm-d1b5bdaebdcdfc85854e6dac538bcc273b6a486a.tar.gz llvm-d1b5bdaebdcdfc85854e6dac538bcc273b6a486a.tar.bz2 llvm-d1b5bdaebdcdfc85854e6dac538bcc273b6a486a.tar.xz |
Move MCOptions that aren't shared between programs into their specific
program and have them initialize the MCOptions struct explicitly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCTargetOptionsCommandFlags.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/llvm/MC/MCTargetOptionsCommandFlags.h b/include/llvm/MC/MCTargetOptionsCommandFlags.h index 24e683f617..17a117a2a3 100644 --- a/include/llvm/MC/MCTargetOptionsCommandFlags.h +++ b/include/llvm/MC/MCTargetOptionsCommandFlags.h @@ -33,31 +33,11 @@ cl::opt<bool> RelaxAll("mc-relax-all", cl::desc("When used with filetype=obj, " "relax all fixups in the emitted object file")); -cl::opt<bool> EnableDwarfDirectory( - "enable-dwarf-directory", cl::Hidden, - cl::desc("Use .file directives with an explicit directory.")); - -cl::opt<bool> NoExecStack("mc-no-exec-stack", - cl::desc("File doesn't need an exec stack")); - -cl::opt<bool> ShowMCEncoding("show-mc-encoding", cl::Hidden, - cl::desc("Show encoding in .s output")); -cl::opt<bool> ShowMCInst("show-mc-inst", cl::Hidden, - cl::desc("Show instruction structure in .s output")); - -cl::opt<bool> AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), - cl::init(false)); - static inline MCTargetOptions InitMCTargetOptionsFromFlags() { MCTargetOptions Options; Options.SanitizeAddress = (AsmInstrumentation == MCTargetOptions::AsmInstrumentationAddress); Options.MCRelaxAll = RelaxAll; - Options.MCUseDwarfDirectory = EnableDwarfDirectory; - Options.MCNoExecStack = NoExecStack; - Options.ShowMCEncoding = ShowMCEncoding; - Options.ShowMCInst = ShowMCInst; - Options.AsmVerbose = AsmVerbose; return Options; } |