[Hexagon] Use std::begin() and std::end() instead of doing the same manually. NFC
authorCraig Topper <craig.topper@gmail.com>
Tue, 1 Dec 2015 06:13:10 +0000 (06:13 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 1 Dec 2015 06:13:10 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp

index 34817cd98f2f30d37cc0769ef2cbe94c7d84761a..e6194f61a6ba919d793f649b5e58be731984637e 100644 (file)
@@ -81,8 +81,7 @@ static const std::pair<unsigned, unsigned> opcodeData[] = {
     std::make_pair((unsigned)V4_SS2_storewi1, 4352)};
 
 static std::map<unsigned, unsigned>
     std::make_pair((unsigned)V4_SS2_storewi1, 4352)};
 
 static std::map<unsigned, unsigned>
-    subinstOpcodeMap(opcodeData,
-                     opcodeData + sizeof(opcodeData) / sizeof(opcodeData[0]));
+    subinstOpcodeMap(std::begin(opcodeData), std::end(opcodeData));
 
 bool HexagonMCInstrInfo::isDuplexPairMatch(unsigned Ga, unsigned Gb) {
   switch (Ga) {
 
 bool HexagonMCInstrInfo::isDuplexPairMatch(unsigned Ga, unsigned Gb) {
   switch (Ga) {