File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ import cllvm
11
11
/// together with the LLVM linker, which merges function (and global variable)
12
12
/// definitions, resolves forward declarations, and merges symbol table entries.
13
13
///
14
+ /// Creating a Module
15
+ /// ==================
16
+ ///
17
+ /// A module can be created using `init(name:context:)`.
18
+ /// Note that the default target triple is bare metal and there is no default data layout.
19
+ /// If you require these to be specified (e.g. to increase the correctness of default alignment values),
20
+ /// be sure to set them yourself.
21
+ ///
22
+ /// if let machine = try? TargetMachine() {
23
+ /// module.targetTriple = machine.triple
24
+ /// module.dataLayout = machine.dataLayout
25
+ /// }
26
+ ///
14
27
/// Verifying a Module
15
28
/// ==================
16
29
///
You can’t perform that action at this time.
0 commit comments