DebugInfoOptions.h revision 360784
1//===--- DebugInfoOptions.h - Debug Info Emission Types ---------*- C++ -*-===// 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#ifndef LLVM_CLANG_BASIC_DEBUGINFOOPTIONS_H 10#define LLVM_CLANG_BASIC_DEBUGINFOOPTIONS_H 11 12namespace clang { 13namespace codegenoptions { 14 15enum DebugInfoFormat { 16 DIF_DWARF, 17 DIF_CodeView, 18}; 19 20enum DebugInfoKind { 21 /// Don't generate debug info. 22 NoDebugInfo, 23 24 /// Emit location information but do not generate debug info in the output. 25 /// This is useful in cases where the backend wants to track source 26 /// locations for instructions without actually emitting debug info for them 27 /// (e.g., when -Rpass is used). 28 LocTrackingOnly, 29 30 /// Emit only debug directives with the line numbers data 31 DebugDirectivesOnly, 32 33 /// Emit only debug info necessary for generating line number tables 34 /// (-gline-tables-only). 35 DebugLineTablesOnly, 36 37 /// Limit generated debug info for classes to reduce size. This emits class 38 /// type info only where the constructor is emitted, if it is a class that 39 /// has a constructor. 40 DebugInfoConstructor, 41 42 /// Limit generated debug info to reduce size (-fno-standalone-debug). This 43 /// emits forward decls for types that could be replaced with forward decls in 44 /// the source code. For dynamic C++ classes type info is only emitted into 45 /// the module that contains the classe's vtable. 46 LimitedDebugInfo, 47 48 /// Generate complete debug info. 49 FullDebugInfo 50}; 51 52} // end namespace codegenoptions 53} // end namespace clang 54 55#endif 56