[PATCH] D28544: Remove all DWARFDie::getAttributeAsXXX() calls that returned default values and use new llvm::OptionalDefault template instead.
Greg Clayton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 17:50:03 PST 2017
clayborg created this revision.
clayborg added reviewers: dblaikie, aprantl, probinson, llvm-commits.
Herald added a subscriber: jgosnell.
This removes many APIs and provides a generic way to get the result of a function that is an Optional<T> and get a default value for T that is specified if the optional doesn't have a value.
https://reviews.llvm.org/D28544
Files:
include/llvm/ADT/Optional.h
include/llvm/DebugInfo/DWARF/DWARFDie.h
lib/DebugInfo/DWARF/DWARFDie.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
tools/dsymutil/DwarfLinker.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28544.83908.patch
Type: text/x-patch
Size: 28029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170111/c0ac20b2/attachment-0001.bin>
More information about the llvm-commits
mailing list