llvm.org GIT mirror llvm / 9a14841
Move the JIT flags from llc to lli. These flags showed up as part of moving backend flags in TargetOptions.h into their own class in r145714. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154993 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 8 years ago
2 changed file(s) with 28 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
209209 cl::init(false));
210210
211211 static cl::opt
212 EnableJITExceptionHandling("jit-enable-eh",
213 cl::desc("Emit exception handling information"),
214 cl::init(false));
215
216 // In debug builds, make this default to true.
217 #ifdef NDEBUG
218 #define EMIT_DEBUG false
219 #else
220 #define EMIT_DEBUG true
221 #endif
222 static cl::opt
223 EmitJitDebugInfo("jit-emit-debug",
224 cl::desc("Emit debug information to debugger"),
225 cl::init(EMIT_DEBUG));
226 #undef EMIT_DEBUG
227
228 static cl::opt
229 EmitJitDebugInfoToDisk("jit-emit-debug-to-disk",
230 cl::Hidden,
231 cl::desc("Emit debug info objfiles to disk"),
232 cl::init(false));
233
234 static cl::opt
235212 EnableGuaranteedTailCallOpt("tailcallopt",
236213 cl::desc("Turn fastcc calls into tail calls by (potentially) changing ABI."),
237214 cl::init(false));
462439 if (FloatABIForCalls != FloatABI::Default)
463440 Options.FloatABIType = FloatABIForCalls;
464441 Options.NoZerosInBSS = DontPlaceZerosInBSS;
465 Options.JITExceptionHandling = EnableJITExceptionHandling;
466 Options.JITEmitDebugInfo = EmitJitDebugInfo;
467 Options.JITEmitDebugInfoToDisk = EmitJitDebugInfoToDisk;
468442 Options.GuaranteedTailCallOpt = EnableGuaranteedTailCallOpt;
469443 Options.DisableTailCalls = DisableTailCalls;
470444 Options.StackAlignmentOverride = OverrideStackAlignment;
140140 "Large code model"),
141141 clEnumValEnd));
142142
143 cl::opt
144 EnableJITExceptionHandling("jit-enable-eh",
145 cl::desc("Emit exception handling information"),
146 cl::init(false));
147
148 cl::opt
149 // In debug builds, make this default to true.
150 #ifdef NDEBUG
151 #define EMIT_DEBUG false
152 #else
153 #define EMIT_DEBUG true
154 #endif
155 EmitJitDebugInfo("jit-emit-debug",
156 cl::desc("Emit debug information to debugger"),
157 cl::init(EMIT_DEBUG));
158 #undef EMIT_DEBUG
159
160 static cl::opt
161 EmitJitDebugInfoToDisk("jit-emit-debug-to-disk",
162 cl::Hidden,
163 cl::desc("Emit debug info objfiles to disk"),
164 cl::init(false));
143165 }
144166
145167 static ExecutionEngine *EE = 0;
227249 case '3': OLvl = CodeGenOpt::Aggressive; break;
228250 }
229251 builder.setOptLevel(OLvl);
252
253 TargetOptions Options;
254 Options.JITExceptionHandling = EnableJITExceptionHandling;
255 Options.JITEmitDebugInfo = EmitJitDebugInfo;
256 Options.JITEmitDebugInfoToDisk = EmitJitDebugInfoToDisk;
257 builder.setTargetOptions(Options);
230258
231259 EE = builder.create();
232260 if (!EE) {