summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-04-01 23:34:45 +0000
committerAdrian Prantl <aprantl@apple.com>2014-04-01 23:34:45 +0000
commit45063c008e7675d25a994dea89f2f045ad19531f (patch)
treef3e868d13280a6787bc7677e4332edc4c555e995
parent132285a59cf9ae6d1cf1218d253059dd46db3933 (diff)
downloadllvm-45063c008e7675d25a994dea89f2f045ad19531f.tar.gz
llvm-45063c008e7675d25a994dea89f2f045ad19531f.tar.bz2
llvm-45063c008e7675d25a994dea89f2f045ad19531f.tar.xz
Add a doxygen comment to DebugLocEntry::Merge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205374 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DebugLocEntry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/lib/CodeGen/AsmPrinter/DebugLocEntry.h
index 0834b36013..7551c8f0ce 100644
--- a/lib/CodeGen/AsmPrinter/DebugLocEntry.h
+++ b/lib/CodeGen/AsmPrinter/DebugLocEntry.h
@@ -94,6 +94,9 @@ public:
EntryKind = E_ConstantInt;
}
+ /// \brief Attempt to merge this DebugLocEntry with Next and return
+ /// true if the merge was successful. Entries can be merged if they
+ /// share the same Loc/Constant and their ranges are adjacent.
bool Merge(const DebugLocEntry &Next) {
if (End == Next.Begin && hasSameValueOrLocation(Next)) {
End = Next.End;