@@ -52,9 +52,8 @@ static std::string getErrorLocation(MemoryBufferRef mb, const section_64 &sec, |
|
|
52 |
52 |
|
53 |
53 |
static void validateLength(MemoryBufferRef mb, const section_64 &sec, |
54 |
54 |
const relocation_info &rel, |
55 |
|
-const std::vector<uint8_t> &validLengths) { |
56 |
|
-if (std::find(validLengths.begin(), validLengths.end(), rel.r_length) != |
57 |
|
- validLengths.end()) |
|
55 |
+ ArrayRef<uint8_t> validLengths) { |
|
56 |
+if (find(validLengths, rel.r_length) != validLengths.end()) |
58 |
57 |
return; |
59 |
58 |
|
60 |
59 |
std::string msg = getErrorLocation(mb, sec, rel) + ": relocations of type " + |