clang: add -emit-llvm example (#2499)

italian
Guilherme Leobas 2018-10-28 18:04:44 +01:00 committed by Starbeamrainbowlabs
parent 19f7958076
commit 5f67df146b
1 changed files with 4 additions and 0 deletions

View File

@ -13,3 +13,7 @@
- Include libraries located at a different path than the source file:
`clang {{input_source.c}} -o {{output_executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
- Compile source code into LLVM Intermediate Representation (IR):
`clang -S -emit-llvm {{file.c}} -o {{file.ll}}`