[llvm] [llvm-pdbutil] Create DBI section headers in yaml2pdb (PR #166566)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 16:59:32 PST 2025


================
@@ -865,6 +869,19 @@ static void yamlToPdb(StringRef Path) {
     }
   }
 
+  std::vector<object::coff_section> Sections;
+  if (!Dbi.SectionHeaders.empty()) {
+    for (const auto &Hdr : Dbi.SectionHeaders) {
+      Sections.emplace_back(Hdr.toCoffSection());
----------------
aganea wrote:

One liners need no braces for `for`, see https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

https://github.com/llvm/llvm-project/pull/166566


More information about the llvm-commits mailing list