Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lldb/scripts/generate-sbapi-dwarf-enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import argparse
import re
import os

HEADER = """\
//===-- SBLanguages.h -----------------------------------------*- C++ -*-===//
Expand Down Expand Up @@ -37,6 +38,9 @@ def emit_enum(input, output):
with open(input, "r") as f:
lines = f.readlines()

# Create output folder if it does not exist
os.makedirs(os.path.dirname(output), exist_ok=True)

# Write the output.
with open(output, "w") as f:
# Emit the header.
Expand Down