1//===-- TargetOptionsImpl.cpp - Options that apply to all targets ----------==//
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 implements the methods in the TargetOptions.
10//
11//===----------------------------------------------------------------------===//
12
13#include "llvm/CodeGen/MachineFrameInfo.h"
14#include "llvm/CodeGen/MachineFunction.h"
15#include "llvm/CodeGen/TargetFrameLowering.h"
16#include "llvm/CodeGen/TargetSubtargetInfo.h"
17#include "llvm/Target/TargetOptions.h"
18using namespace llvm;
19
20/// NOTE: There are targets that still do not support the debug entry values
21/// production and that is being controlled with the SupportsDebugEntryValues.
22/// In addition, SCE debugger does not have the feature implemented, so prefer
23/// not to emit the debug entry values in that case.
24/// The EnableDebugEntryValues can be used for the testing purposes.
25bool TargetOptions::ShouldEmitDebugEntryValues() const {
26 return (SupportsDebugEntryValues && DebuggerTuning != DebuggerKind::SCE) ||
27 EnableDebugEntryValues;
28}
29