diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-12-01 06:13:10 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-12-01 06:13:10 +0000 | 
| commit | ddc76f2bed6dd8586639fdcd4060c17aba0a7641 (patch) | |
| tree | 5de88dcbfc857053a78f202c64240978a7d0e674 | |
| parent | d824f5f0d9c3619e50a891bf019c8db332aa5328 (diff) | |
| download | bcm5719-llvm-ddc76f2bed6dd8586639fdcd4060c17aba0a7641.tar.gz bcm5719-llvm-ddc76f2bed6dd8586639fdcd4060c17aba0a7641.zip  | |
[Hexagon] Use std::begin() and std::end() instead of doing the same manually. NFC
llvm-svn: 254385
| -rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp index 34817cd98f2..e6194f61a6b 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCDuplexInfo.cpp @@ -81,8 +81,7 @@ static const std::pair<unsigned, unsigned> opcodeData[] = {      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) {  | 

