Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clang-format
  • Loading branch information
jmorse committed Jul 21, 2025
commit 759002b6a11d475ba089424a2bbb8d124008dcef
10 changes: 6 additions & 4 deletions llvm/include/llvm/IR/DebugInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ LLVM_ABI TinyPtrVector<DbgVariableRecord *> findDVRDeclares(Value *V);
LLVM_ABI TinyPtrVector<DbgVariableRecord *> findDVRValues(Value *V);

/// Finds the debug info records describing a value.
LLVM_ABI void findDbgUsers(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords);
LLVM_ABI void
findDbgUsers(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords);
/// Finds the dbg.values describing a value.
LLVM_ABI void findDbgValues(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords);
LLVM_ABI void
findDbgValues(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords);

/// Find subprogram that is enclosing this scope.
LLVM_ABI DISubprogram *getDISubprogram(const MDNode *Scope);
Expand Down
8 changes: 4 additions & 4 deletions llvm/lib/IR/DebugInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ findDbgIntrinsics(Value *V,
}
}

void llvm::findDbgValues(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords) {
void llvm::findDbgValues(
Value *V, SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords) {
findDbgIntrinsics</*DbgAssignAndValuesOnly=*/true>(V, DbgVariableRecords);
}

void llvm::findDbgUsers(Value *V,
SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords) {
void llvm::findDbgUsers(
Value *V, SmallVectorImpl<DbgVariableRecord *> &DbgVariableRecords) {
findDbgIntrinsics</*DbgAssignAndValuesOnly=*/false>(V, DbgVariableRecords);
}

Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Utils/Local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2036,8 +2036,8 @@ template <typename T> static void salvageDbgAssignAddress(T *Assign) {
}
}

void llvm::salvageDebugInfoForDbgValues(
Instruction &I, ArrayRef<DbgVariableRecord *> DPUsers) {
void llvm::salvageDebugInfoForDbgValues(Instruction &I,
ArrayRef<DbgVariableRecord *> DPUsers) {
// These are arbitrary chosen limits on the maximum number of values and the
// maximum size of a debug expression we can salvage up to, used for
// performance reasons.
Expand Down