llvm.org GIT mirror llvm / b6e6c85
Fix a few pedantic warnings. Reviewers: zturner, hansw, hans Reviewed By: hans Subscribers: hans, llvm-commits Differential Revision: https://reviews.llvm.org/D32611 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301595 91177308-0d34-0410-b5e6-96231b3b80d8 Frederich Munch 2 years ago
2 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
310310 pdb::yaml::SerializationContext &Context) {
311311 IO.mapRequired("StartColumn", Obj.StartColumn);
312312 IO.mapRequired("EndColumn", Obj.EndColumn);
313 };
313 }
314314
315315 void MappingContextTraits
316316 pdb::yaml::SerializationContext>::
319319 IO.mapRequired("FileName", Obj.FileName);
320320 IO.mapRequired("Lines", Obj.Lines, Context);
321321 IO.mapRequired("Columns", Obj.Columns, Context);
322 };
322 }
323323
324324 void MappingContextTraits
325325 pdb::yaml::SerializationContext>::
328328 IO.mapRequired("FileName", Obj.FileName);
329329 IO.mapRequired("Kind", Obj.Kind);
330330 IO.mapRequired("Checksum", Obj.ChecksumBytes);
331 };
331 }
332332
333333 void MappingContextTraits
334334 pdb::yaml::SerializationContext>::
339339 IO.mapRequired("RelocOffset", Obj.RelocOffset);
340340 IO.mapRequired("RelocSegment", Obj.RelocSegment);
341341 IO.mapRequired("LineInfo", Obj.LineInfo, Context);
342 };
342 }
343343
344344 void MappingContextTraits
345345 pdb::yaml::SerializationContext>::
347347 pdb::yaml::SerializationContext &Context) {
348348 IO.mapOptionalWithContext("Lines", Obj.Lines, Context);
349349 IO.mapOptionalWithContext("Checksums", Obj.FileChecksums, Context);
350 };
350 }
351351
352352 void MappingContextTraits::
353353 mapping(IO &IO, pdb::yaml::PdbTpiRecord &Obj,
2222 extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "ProcessCall"; }
2323
2424 std::string LibPath() {
25 std::string Path =
26 fs::getMainExecutable("DynamicLibraryTests", (void *)&TestA);
25 void *Ptr = (void*)(intptr_t)TestA;
26 std::string Path = fs::getMainExecutable("DynamicLibraryTests", Ptr);
2727 llvm::SmallString<256> Buf(path::parent_path(Path));
2828 path::append(Buf, "PipSqueak.so");
2929 return Buf.str();