Skip to content

Commit

Permalink
Bug 7458: Let dfmc-llvm-linker emit (currently empty) _glue.bc files
Browse files Browse the repository at this point in the history
* sources/dfmc/llvm-linker/llvm-gluefile.dylan (emit-gluefile): Emit an
  empty _glue.bc bitcode file within the build directory of built libraries.
  • Loading branch information
housel committed Mar 16, 2012
1 parent 7cfbe42 commit 093c564
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sources/dfmc/llvm-linker/llvm-gluefile.dylan
Expand Up @@ -19,7 +19,21 @@ define sideways method emit-gluefile
debug-info? = #t,
compilation-layer,
#all-keys)
let locator
= build-area-output-locator(ld, base: "_glue", type: "bc");
let m = make(<llvm-module>,
name: "_glue",
target-triple: llvm-back-end-target-triple(back-end),
data-layout: llvm-back-end-data-layout(back-end));
back-end.llvm-builder-module := m;

// FIXME

// Output LLVM bitcode
llvm-save-bitcode-file(m, locator);

// Retract
back-end.llvm-builder-module := #f;
end;


Expand Down

0 comments on commit 093c564

Please sign in to comment.