LLVM 20.0.0git
DebugInfo.h
Go to the documentation of this file.
1//===- DebugInfo.h - Debug Information Helpers ------------------*- 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// This file defines a bunch of datatypes that are useful for creating and
10// walking debug info in LLVM IR form. They essentially provide wrappers around
11// the information in the global variables that's needed when constructing the
12// DWARF information.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef LLVM_IR_DEBUGINFO_H
17#define LLVM_IR_DEBUGINFO_H
18
20#include "llvm/ADT/STLExtras.h"
21#include "llvm/ADT/SetVector.h"
23#include "llvm/ADT/SmallSet.h"
27#include "llvm/IR/DataLayout.h"
29#include "llvm/IR/PassManager.h"
30#include <optional>
31
32namespace llvm {
33
34class DbgDeclareInst;
35class DbgValueInst;
36class DbgVariableIntrinsic;
37class DbgVariableRecord;
38class Instruction;
39class Module;
40
41/// Finds dbg.declare intrinsics declaring local variables as living in the
42/// memory that 'V' points to.
43TinyPtrVector<DbgDeclareInst *> findDbgDeclares(Value *V);
44/// As above, for DVRDeclares.
45TinyPtrVector<DbgVariableRecord *> findDVRDeclares(Value *V);
46/// As above, for DVRValues.
47TinyPtrVector<DbgVariableRecord *> findDVRValues(Value *V);
48
49/// Finds the llvm.dbg.value intrinsics describing a value.
50void findDbgValues(
51 SmallVectorImpl<DbgValueInst *> &DbgValues, Value *V,
52 SmallVectorImpl<DbgVariableRecord *> *DbgVariableRecords = nullptr);
53
54/// Finds the debug info intrinsics describing a value.
55void findDbgUsers(
56 SmallVectorImpl<DbgVariableIntrinsic *> &DbgInsts, Value *V,
57 SmallVectorImpl<DbgVariableRecord *> *DbgVariableRecords = nullptr);
58
59/// Find subprogram that is enclosing this scope.
60DISubprogram *getDISubprogram(const MDNode *Scope);
61
62/// Produce a DebugLoc to use for each dbg.declare that is promoted to a
63/// dbg.value.
64DebugLoc getDebugValueLoc(DbgVariableIntrinsic *DII);
65DebugLoc getDebugValueLoc(DbgVariableRecord *DVR);
66
67/// Strip debug info in the module if it exists.
68///
69/// To do this, we remove all calls to the debugger intrinsics and any named
70/// metadata for debugging. We also remove debug locations for instructions.
71/// Return true if module is modified.
72bool StripDebugInfo(Module &M);
73bool stripDebugInfo(Function &F);
74
75/// Downgrade the debug info in a module to contain only line table information.
76///
77/// In order to convert debug info to what -gline-tables-only would have
78/// created, this does the following:
79/// 1) Delete all debug intrinsics.
80/// 2) Delete all non-CU named metadata debug info nodes.
81/// 3) Create new DebugLocs for each instruction.
82/// 4) Create a new CU debug info, and similarly for every metadata node
83/// that's reachable from the CU debug info.
84/// All debug type metadata nodes are unreachable and garbage collected.
86
87/// Update the debug locations contained within the MD_loop metadata attached
88/// to the instruction \p I, if one exists. \p Updater is applied to Metadata
89/// operand in the MD_loop metadata: the returned value is included in the
90/// updated loop metadata node if it is non-null.
92 Instruction &I, function_ref<Metadata *(Metadata *)> Updater);
93
94/// Return Debug Info Metadata Version by checking module flags.
96
97/// Utility to find all debug info in a module.
98///
99/// DebugInfoFinder tries to list all debug info MDNodes used in a module. To
100/// list debug info MDNodes used by an instruction, DebugInfoFinder uses
101/// processDeclare, processValue and processLocation to handle DbgDeclareInst,
102/// DbgValueInst and DbgLoc attached to instructions. processModule will go
103/// through all DICompileUnits in llvm.dbg.cu and list debug info MDNodes
104/// used by the CUs.
106public:
107 /// Process entire module and collect debug info anchors.
108 void processModule(const Module &M);
109 /// Process a single instruction and collect debug info anchors.
110 void processInstruction(const Module &M, const Instruction &I);
111
112 /// Process a DILocalVariable.
113 void processVariable(const Module &M, const DILocalVariable *DVI);
114 /// Process debug info location.
115 void processLocation(const Module &M, const DILocation *Loc);
116 /// Process a DbgRecord (e.g, treat a DbgVariableRecord like a
117 /// DbgVariableIntrinsic).
118 void processDbgRecord(const Module &M, const DbgRecord &DR);
119
120 /// Process subprogram.
122
123 /// Clear all lists.
124 void reset();
125
126private:
127 void processCompileUnit(DICompileUnit *CU);
128 void processScope(DIScope *Scope);
129 void processType(DIType *DT);
130 bool addCompileUnit(DICompileUnit *CU);
131 bool addGlobalVariable(DIGlobalVariableExpression *DIG);
132 bool addScope(DIScope *Scope);
133 bool addSubprogram(DISubprogram *SP);
134 bool addType(DIType *DT);
135
136public:
144
146 return make_range(CUs.begin(), CUs.end());
147 }
148
150 return make_range(SPs.begin(), SPs.end());
151 }
152
154 return make_range(GVs.begin(), GVs.end());
155 }
156
158 return make_range(TYs.begin(), TYs.end());
159 }
160
162 return make_range(Scopes.begin(), Scopes.end());
163 }
164
165 unsigned compile_unit_count() const { return CUs.size(); }
166 unsigned global_variable_count() const { return GVs.size(); }
167 unsigned subprogram_count() const { return SPs.size(); }
168 unsigned type_count() const { return TYs.size(); }
169 unsigned scope_count() const { return Scopes.size(); }
170
171private:
178};
179
180/// Assignment Tracking (at).
181namespace at {
182//
183// Utilities for enumerating storing instructions from an assignment ID.
184//
185/// A range of instructions.
188/// Return a range of instructions (typically just one) that have \p ID
189/// as an attachment.
190/// Iterators invalidated by adding or removing DIAssignID metadata to/from any
191/// instruction (including by deleting or cloning instructions).
193/// Return a range of instructions (typically just one) that perform the
194/// assignment that \p DAI encodes.
195/// Iterators invalidated by adding or removing DIAssignID metadata to/from any
196/// instruction (including by deleting or cloning instructions).
198 return getAssignmentInsts(DAI->getAssignID());
199}
200
202 assert(DVR->isDbgAssign() &&
203 "Can't get assignment instructions for non-assign DVR!");
204 return getAssignmentInsts(DVR->getAssignID());
205}
206
207//
208// Utilities for enumerating llvm.dbg.assign intrinsic from an assignment ID.
209//
210/// High level: this is an iterator for llvm.dbg.assign intrinsics.
211/// Implementation details: this is a wrapper around Value's User iterator that
212/// dereferences to a DbgAssignIntrinsic ptr rather than a User ptr.
214 : public iterator_adaptor_base<DbgAssignIt, Value::user_iterator,
215 typename std::iterator_traits<
216 Value::user_iterator>::iterator_category,
217 DbgAssignIntrinsic *, std::ptrdiff_t,
218 DbgAssignIntrinsic **,
219 DbgAssignIntrinsic *&> {
220public:
222 DbgAssignIntrinsic *operator*() const { return cast<DbgAssignIntrinsic>(*I); }
223};
224/// A range of llvm.dbg.assign intrinsics.
226/// Return a range of dbg.assign intrinsics which use \ID as an operand.
227/// Iterators invalidated by deleting an intrinsic contained in this range.
229/// Return a range of dbg.assign intrinsics for which \p Inst performs the
230/// assignment they encode.
231/// Iterators invalidated by deleting an intrinsic contained in this range.
233 if (auto *ID = Inst->getMetadata(LLVMContext::MD_DIAssignID))
234 return getAssignmentMarkers(cast<DIAssignID>(ID));
235 else
237}
238
241 if (auto *ID = Inst->getMetadata(LLVMContext::MD_DIAssignID))
242 return cast<DIAssignID>(ID)->getAllDbgVariableRecordUsers();
243 return {};
244}
245
246/// Delete the llvm.dbg.assign intrinsics linked to \p Inst.
247void deleteAssignmentMarkers(const Instruction *Inst);
248
249/// Replace all uses (and attachments) of \p Old with \p New.
250void RAUW(DIAssignID *Old, DIAssignID *New);
251
252/// Remove all Assignment Tracking related intrinsics and metadata from \p F.
253void deleteAll(Function *F);
254
255/// Calculate the fragment of the variable in \p DAI covered
256/// from (Dest + SliceOffsetInBits) to
257/// to (Dest + SliceOffsetInBits + SliceSizeInBits)
258///
259/// Return false if it can't be calculated for any reason.
260/// Result is set to nullopt if the intersect equals the variable fragment (or
261/// variable size) in DAI.
262///
263/// Result contains a zero-sized fragment if there's no intersect.
265 const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits,
266 uint64_t SliceSizeInBits, const DbgAssignIntrinsic *DbgAssign,
267 std::optional<DIExpression::FragmentInfo> &Result);
269 const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits,
270 uint64_t SliceSizeInBits, const DbgVariableRecord *DVRAssign,
271 std::optional<DIExpression::FragmentInfo> &Result);
272
273/// Replace DIAssignID uses and attachments with IDs from \p Map.
274/// If an ID is unmapped a new ID is generated and added to \p Map.
276
277/// Helper struct for trackAssignments, below. We don't use the similar
278/// DebugVariable class because trackAssignments doesn't (yet?) understand
279/// partial variables (fragment info) as input and want to make that clear and
280/// explicit using types. In addition, eventually we will want to understand
281/// expressions that modify the base address too, which a DebugVariable doesn't
282/// capture.
283struct VarRecord {
286
288 : Var(DVI->getVariable()), DL(getDebugValueLoc(DVI)) {}
290 : Var(DVR->getVariable()), DL(getDebugValueLoc(DVR)) {}
292 friend bool operator<(const VarRecord &LHS, const VarRecord &RHS) {
293 return std::tie(LHS.Var, LHS.DL) < std::tie(RHS.Var, RHS.DL);
294 }
295 friend bool operator==(const VarRecord &LHS, const VarRecord &RHS) {
296 return std::tie(LHS.Var, LHS.DL) == std::tie(RHS.Var, RHS.DL);
297 }
298};
299
300} // namespace at
301
302template <> struct DenseMapInfo<at::VarRecord> {
303 static inline at::VarRecord getEmptyKey() {
306 }
307
311 }
312
313 static unsigned getHashValue(const at::VarRecord &Var) {
314 return hash_combine(Var.Var, Var.DL);
315 }
316
317 static bool isEqual(const at::VarRecord &A, const at::VarRecord &B) {
318 return A == B;
319 }
320};
321
322namespace at {
323/// Map of backing storage to a set of variables that are stored to it.
324/// TODO: Backing storage shouldn't be limited to allocas only. Some local
325/// variables have their storage allocated by the calling function (addresses
326/// passed in with sret & byval parameters).
329
330/// Track assignments to \p Vars between \p Start and \p End.
331
333 const StorageToVarsMap &Vars, const DataLayout &DL,
334 bool DebugPrints = false);
335
336/// Describes properties of a store that has a static size and offset into a
337/// some base storage. Used by the getAssignmentInfo functions.
339 AllocaInst const *Base; ///< Base storage.
340 uint64_t OffsetInBits; ///< Offset into Base.
341 uint64_t SizeInBits; ///< Number of bits stored.
342 bool StoreToWholeAlloca; ///< SizeInBits equals the size of the base storage.
343
348 OffsetInBits == 0 &&
349 SizeInBits == DL.getTypeSizeInBits(Base->getAllocatedType())) {}
350};
351
352std::optional<AssignmentInfo> getAssignmentInfo(const DataLayout &DL,
353 const MemIntrinsic *I);
354std::optional<AssignmentInfo> getAssignmentInfo(const DataLayout &DL,
355 const StoreInst *SI);
356std::optional<AssignmentInfo> getAssignmentInfo(const DataLayout &DL,
357 const AllocaInst *AI);
358
359} // end namespace at
360
361/// Convert @llvm.dbg.declare intrinsics into sets of @llvm.dbg.assign
362/// intrinsics by treating stores to the dbg.declare'd address as assignments
363/// to the variable. Not all kinds of variables are supported yet; those will
364/// be left with their dbg.declare intrinsics.
365/// The pass sets the debug-info-assignment-tracking module flag to true to
366/// indicate assignment tracking has been enabled.
367class AssignmentTrackingPass : public PassInfoMixin<AssignmentTrackingPass> {
368 /// Note: this method does not set the debug-info-assignment-tracking module
369 /// flag.
370 bool runOnFunction(Function &F);
371
372public:
375};
376
377/// Return true if assignment tracking is enabled for module \p M.
379
380} // end namespace llvm
381
382#endif // LLVM_IR_DEBUGINFO_H
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
dxil translate DXIL Translate Metadata
This file defines DenseMapInfo traits for DenseMap.
bool End
Definition: ELF_riscv.cpp:480
This header defines various interfaces for pass management in LLVM.
#define F(x, y, z)
Definition: MD5.cpp:55
#define I(x, y, z)
Definition: MD5.cpp:58
Machine Check Debug Module
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file contains some templates that are useful if you are working with the STL at all.
This file implements a set that has insertion order iteration characteristics.
This file defines the SmallPtrSet class.
This file defines the SmallSet class.
This file defines the SmallVector class.
Value * RHS
Value * LHS
an instruction to allocate memory on the stack
Definition: Instructions.h:63
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
Convert @llvm.dbg.declare intrinsics into sets of @llvm.dbg.assign intrinsics by treating stores to t...
Definition: DebugInfo.h:367
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition: DebugInfo.cpp:2302
Assignment ID.
A pair of DIGlobalVariable and DIExpression.
Debug location.
Base class for scope-like contexts.
Subprogram description.
Base class for types.
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:63
This represents the llvm.dbg.assign instruction.
DIAssignID * getAssignID() const
Base class for non-instruction debug metadata records that have positions within IR.
This is the common base class for debug info intrinsics for variables.
Record of a variable value-assignment, aka a non instruction representation of the dbg....
Utility to find all debug info in a module.
Definition: DebugInfo.h:105
void processInstruction(const Module &M, const Instruction &I)
Process a single instruction and collect debug info anchors.
Definition: DebugInfo.cpp:256
unsigned subprogram_count() const
Definition: DebugInfo.h:167
void processModule(const Module &M)
Process entire module and collect debug info anchors.
Definition: DebugInfo.cpp:212
SmallVectorImpl< DICompileUnit * >::const_iterator compile_unit_iterator
Definition: DebugInfo.h:138
void processVariable(const Module &M, const DILocalVariable *DVI)
Process a DILocalVariable.
Definition: DebugInfo.cpp:354
unsigned type_count() const
Definition: DebugInfo.h:168
void processSubprogram(DISubprogram *SP)
Process subprogram.
Definition: DebugInfo.cpp:331
void processLocation(const Module &M, const DILocation *Loc)
Process debug info location.
Definition: DebugInfo.cpp:268
SmallVectorImpl< DIGlobalVariableExpression * >::const_iterator global_variable_expression_iterator
Definition: DebugInfo.h:141
void reset()
Clear all lists.
Definition: DebugInfo.cpp:203
SmallVectorImpl< DIScope * >::const_iterator scope_iterator
Definition: DebugInfo.h:143
unsigned global_variable_count() const
Definition: DebugInfo.h:166
iterator_range< global_variable_expression_iterator > global_variables() const
Definition: DebugInfo.h:153
iterator_range< subprogram_iterator > subprograms() const
Definition: DebugInfo.h:149
SmallVectorImpl< DIType * >::const_iterator type_iterator
Definition: DebugInfo.h:142
SmallVectorImpl< DISubprogram * >::const_iterator subprogram_iterator
Definition: DebugInfo.h:139
iterator_range< type_iterator > types() const
Definition: DebugInfo.h:157
iterator_range< scope_iterator > scopes() const
Definition: DebugInfo.h:161
unsigned compile_unit_count() const
Definition: DebugInfo.h:165
iterator_range< compile_unit_iterator > compile_units() const
Definition: DebugInfo.h:145
void processDbgRecord(const Module &M, const DbgRecord &DR)
Process a DbgRecord (e.g, treat a DbgVariableRecord like a DbgVariableIntrinsic).
Definition: DebugInfo.cpp:275
unsigned scope_count() const
Definition: DebugInfo.h:169
BasicBlockListType::iterator iterator
Definition: Function.h:68
MDNode * getMetadata(unsigned KindID) const
Get the metadata of given kind attached to this Instruction.
Definition: Instruction.h:386
This is the common base class for memset/memcpy/memmove.
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
Definition: SmallPtrSet.h:519
typename SuperClass::const_iterator const_iterator
Definition: SmallVector.h:578
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition: SmallVector.h:1196
An instruction for storing to memory.
Definition: Instructions.h:292
LLVM Value Representation.
Definition: Value.h:74
user_iterator_impl< User > user_iterator
Definition: Value.h:390
High level: this is an iterator for llvm.dbg.assign intrinsics.
Definition: DebugInfo.h:219
DbgAssignIt(Value::user_iterator It)
Definition: DebugInfo.h:221
DbgAssignIntrinsic * operator*() const
Definition: DebugInfo.h:222
CRTP base class for adapting an iterator to a different type.
Definition: iterator.h:237
A range adaptor for a pair of iterators.
This provides a very simple, boring adaptor for a begin and end iterator into a range type.
void deleteAll(Function *F)
Remove all Assignment Tracking related intrinsics and metadata from F.
Definition: DebugInfo.cpp:1905
AssignmentInstRange getAssignmentInsts(DIAssignID *ID)
Return a range of instructions (typically just one) that have ID as an attachment.
Definition: DebugInfo.cpp:1854
AssignmentMarkerRange getAssignmentMarkers(DIAssignID *ID)
Return a range of dbg.assign intrinsics which use \ID as an operand.
Definition: DebugInfo.cpp:1866
void trackAssignments(Function::iterator Start, Function::iterator End, const StorageToVarsMap &Vars, const DataLayout &DL, bool DebugPrints=false)
Track assignments to Vars between Start and End.
Definition: DebugInfo.cpp:2112
void remapAssignID(DenseMap< DIAssignID *, DIAssignID * > &Map, Instruction &I)
Replace DIAssignID uses and attachments with IDs from Map.
Definition: DebugInfo.cpp:1982
SmallVector< DbgVariableRecord * > getDVRAssignmentMarkers(const Instruction *Inst)
Definition: DebugInfo.h:240
void deleteAssignmentMarkers(const Instruction *Inst)
Delete the llvm.dbg.assign intrinsics linked to Inst.
Definition: DebugInfo.cpp:1880
std::optional< AssignmentInfo > getAssignmentInfo(const DataLayout &DL, const MemIntrinsic *I)
Definition: DebugInfo.cpp:2027
bool calculateFragmentIntersect(const DataLayout &DL, const Value *Dest, uint64_t SliceOffsetInBits, uint64_t SliceSizeInBits, const DbgAssignIntrinsic *DbgAssign, std::optional< DIExpression::FragmentInfo > &Result)
Calculate the fragment of the variable in DAI covered from (Dest + SliceOffsetInBits) to to (Dest + S...
Definition: DebugInfo.cpp:1961
void RAUW(DIAssignID *Old, DIAssignID *New)
Replace all uses (and attachments) of Old with New.
Definition: DebugInfo.cpp:1892
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
TinyPtrVector< DbgDeclareInst * > findDbgDeclares(Value *V)
Finds dbg.declare intrinsics declaring local variables as living in the memory that 'V' points to.
Definition: DebugInfo.cpp:47
bool stripDebugInfo(Function &F)
Definition: DebugInfo.cpp:569
void findDbgUsers(SmallVectorImpl< DbgVariableIntrinsic * > &DbgInsts, Value *V, SmallVectorImpl< DbgVariableRecord * > *DbgVariableRecords=nullptr)
Finds the debug info intrinsics describing a value.
Definition: DebugInfo.cpp:162
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
void findDbgValues(SmallVectorImpl< DbgValueInst * > &DbgValues, Value *V, SmallVectorImpl< DbgVariableRecord * > *DbgVariableRecords=nullptr)
Finds the llvm.dbg.value intrinsics describing a value.
Definition: DebugInfo.cpp:155
bool stripNonLineTableDebugInfo(Module &M)
Downgrade the debug info in a module to contain only line table information.
Definition: DebugInfo.cpp:843
DebugLoc getDebugValueLoc(DbgVariableIntrinsic *DII)
Produce a DebugLoc to use for each dbg.declare that is promoted to a dbg.value.
Definition: DebugInfo.cpp:175
TinyPtrVector< DbgVariableRecord * > findDVRValues(Value *V)
As above, for DVRValues.
Definition: DebugInfo.cpp:83
unsigned getDebugMetadataVersionFromModule(const Module &M)
Return Debug Info Metadata Version by checking module flags.
Definition: DebugInfo.cpp:942
bool StripDebugInfo(Module &M)
Strip debug info in the module if it exists.
Definition: DebugInfo.cpp:608
bool isAssignmentTrackingEnabled(const Module &M)
Return true if assignment tracking is enabled for module M.
Definition: DebugInfo.cpp:2298
TinyPtrVector< DbgVariableRecord * > findDVRDeclares(Value *V)
As above, for DVRDeclares.
Definition: DebugInfo.cpp:66
hash_code hash_combine(const Ts &...args)
Combine values into a single hash_code.
Definition: Hashing.h:590
void updateLoopMetadataDebugLocations(Instruction &I, function_ref< Metadata *(Metadata *)> Updater)
Update the debug locations contained within the MD_loop metadata attached to the instruction I,...
Definition: DebugInfo.cpp:439
DISubprogram * getDISubprogram(const MDNode *Scope)
Find subprogram that is enclosing this scope.
Definition: DebugInfo.cpp:169
static bool isEqual(const at::VarRecord &A, const at::VarRecord &B)
Definition: DebugInfo.h:317
static at::VarRecord getEmptyKey()
Definition: DebugInfo.h:303
static unsigned getHashValue(const at::VarRecord &Var)
Definition: DebugInfo.h:313
static at::VarRecord getTombstoneKey()
Definition: DebugInfo.h:308
An information struct used to provide DenseMap with the various necessary components for a given valu...
Definition: DenseMapInfo.h:52
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:69
Describes properties of a store that has a static size and offset into a some base storage.
Definition: DebugInfo.h:338
AssignmentInfo(const DataLayout &DL, AllocaInst const *Base, uint64_t OffsetInBits, uint64_t SizeInBits)
Definition: DebugInfo.h:344
uint64_t OffsetInBits
Offset into Base.
Definition: DebugInfo.h:340
uint64_t SizeInBits
Number of bits stored.
Definition: DebugInfo.h:341
AllocaInst const * Base
Base storage.
Definition: DebugInfo.h:339
bool StoreToWholeAlloca
SizeInBits equals the size of the base storage.
Definition: DebugInfo.h:342
Helper struct for trackAssignments, below.
Definition: DebugInfo.h:283
VarRecord(DbgVariableRecord *DVR)
Definition: DebugInfo.h:289
VarRecord(DbgVariableIntrinsic *DVI)
Definition: DebugInfo.h:287
friend bool operator==(const VarRecord &LHS, const VarRecord &RHS)
Definition: DebugInfo.h:295
friend bool operator<(const VarRecord &LHS, const VarRecord &RHS)
Definition: DebugInfo.h:292
DILocation * DL
Definition: DebugInfo.h:285
VarRecord(DILocalVariable *Var, DILocation *DL)
Definition: DebugInfo.h:291
DILocalVariable * Var
Definition: DebugInfo.h:284