mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Bitcode: Range-based for, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225713 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -799,16 +799,16 @@ static void WriteModuleMetadata(const Module *M,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SmallVector<uint64_t, 64> Record;
|
SmallVector<uint64_t, 64> Record;
|
||||||
for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
|
for (const Metadata *MD : MDs) {
|
||||||
if (const MDNode *N = dyn_cast<MDNode>(MDs[i])) {
|
if (const MDNode *N = dyn_cast<MDNode>(MD)) {
|
||||||
WriteMDNode(N, VE, Stream, Record);
|
WriteMDNode(N, VE, Stream, Record);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (const auto *MDC = dyn_cast<ConstantAsMetadata>(MDs[i])) {
|
if (const auto *MDC = dyn_cast<ConstantAsMetadata>(MD)) {
|
||||||
WriteValueAsMetadata(MDC, VE, Stream, Record);
|
WriteValueAsMetadata(MDC, VE, Stream, Record);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const MDString *MDS = cast<MDString>(MDs[i]);
|
const MDString *MDS = cast<MDString>(MD);
|
||||||
// Code: [strchar x N]
|
// Code: [strchar x N]
|
||||||
Record.append(MDS->bytes_begin(), MDS->bytes_end());
|
Record.append(MDS->bytes_begin(), MDS->bytes_end());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user