| 143 | /// Convert a string from a record into an std::string, return true on failure. |
| 144 | template <typename StrTy> |
| 145 | static bool convertToString(ArrayRef<uint64_t> Record, unsigned Idx, |
| 146 | StrTy &Result) { |
| 147 | if (Idx > Record.size()) |
| 148 | return true; |
| 149 | |
| 150 | for (unsigned i = Idx, e = Record.size(); i != e; ++i) |
| 151 | Result += (char)Record[i]; |
| 152 | return false; |
| 153 | } |
| 154 | |
| 155 | // Strip all the TBAA attachment for the module. |
| 156 | static void stripTBAA(Module *M) { |
no test coverage detected