HomePhabricator

Cleanup how debug comparators are created in <algorithm>

Authored by EricWF on Apr 11 2019, 10:18 PM.

Description

Cleanup how debug comparators are created in <algorithm>

Instead of having an #if block in every algorithm using a debug
comparator, this patch introduces the comp_ref_type trait that
selects
debug_less in debug mode and _Comp& otherwise.

This patch should have no observable functionality change.

llvm-svn: 358252

Details

Committed
EricWFApr 11 2019, 10:18 PM
Parents
rG2122957809b8: MCDwarfLineTableheader::tryGetFile : replace a loop with llvm::find
Branches
Unknown
Tags
Unknown