Skip to content

Commit

Permalink
Update clambcc/clambc-compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
micahsnyder authored Aug 5, 2024
1 parent 06e1f55 commit c23a29f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clambcc/clambc-compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,12 @@ def createInputSourceFile(clangLLVM: ClangLLVM, name: str, args: list, options:
'clambc-lcompiler',
'verify',

# TODO: What does this do?
# This pass loops over all of the functions in the input module, looking for a main function.
# If a main function is found, all other functions and all global variables with initializers are marked as internal.
#
# We maintain a list of public API functions to NOT internalize. See `INTERNALIZE_API_LIST`, above.
#
# See: https://llvm.org/docs/Passes.html#internalize-internalize-global-symbols
'internalize',
'verify',

Expand Down

0 comments on commit c23a29f

Please sign in to comment.