mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +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:
parent
8d86cef92f
commit
f3e42b3baf
@ -799,16 +799,16 @@ static void WriteModuleMetadata(const Module *M,
|
||||
}
|
||||
|
||||
SmallVector<uint64_t, 64> Record;
|
||||
for (unsigned i = 0, e = MDs.size(); i != e; ++i) {
|
||||
if (const MDNode *N = dyn_cast<MDNode>(MDs[i])) {
|
||||
for (const Metadata *MD : MDs) {
|
||||
if (const MDNode *N = dyn_cast<MDNode>(MD)) {
|
||||
WriteMDNode(N, VE, Stream, Record);
|
||||
continue;
|
||||
}
|
||||
if (const auto *MDC = dyn_cast<ConstantAsMetadata>(MDs[i])) {
|
||||
if (const auto *MDC = dyn_cast<ConstantAsMetadata>(MD)) {
|
||||
WriteValueAsMetadata(MDC, VE, Stream, Record);
|
||||
continue;
|
||||
}
|
||||
const MDString *MDS = cast<MDString>(MDs[i]);
|
||||
const MDString *MDS = cast<MDString>(MD);
|
||||
// Code: [strchar x N]
|
||||
Record.append(MDS->bytes_begin(), MDS->bytes_end());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user