From: Craig Topper Date: Tue, 1 Dec 2015 06:13:10 +0000 (+0000) Subject: [Hexagon] Use std::begin() and std::end() instead of doing the same manually. NFC X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=b6f477da5ec08012d2fa8739139eac13123411da [Hexagon] Use std::begin() and std::end() instead of doing the same manually. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254385 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp b/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp index 34817cd98f2..e6194f61a6b 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp @@ -81,8 +81,7 @@ static const std::pair opcodeData[] = { std::make_pair((unsigned)V4_SS2_storewi1, 4352)}; static std::map - subinstOpcodeMap(opcodeData, - opcodeData + sizeof(opcodeData) / sizeof(opcodeData[0])); + subinstOpcodeMap(std::begin(opcodeData), std::end(opcodeData)); bool HexagonMCInstrInfo::isDuplexPairMatch(unsigned Ga, unsigned Gb) { switch (Ga) {