Rewrite LLVM's archive writer in Rust
This allows it to be used by other codegen backends
This commit is contained in:
parent
c3a1c023c0
commit
be6708428f
24 changed files with 445 additions and 527 deletions
|
@ -1967,3 +1967,7 @@ extern "C" int32_t LLVMRustGetElementTypeArgIndex(LLVMValueRef CallSite) {
|
|||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
extern "C" bool LLVMRustIsBitcode(char *ptr, size_t len) {
|
||||
return identify_magic(StringRef(ptr, len)) == file_magic::bitcode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue