diff options
| author | Alessandro Decina <alessandro.d@gmail.com> | 2020-11-30 19:41:57 +0000 |
|---|---|---|
| committer | Alessandro Decina <alessandro.d@gmail.com> | 2021-05-23 18:03:27 +1000 |
| commit | 12e70929d66577f74cb6214bba5bf104e1f14aa2 (patch) | |
| tree | 140448195cdbf393d03330a6ee276a42b2ca8156 /compiler/rustc_llvm/src | |
| parent | 92418ce65aa9d45fd1af355136d65493254a344a (diff) | |
| download | rust-12e70929d66577f74cb6214bba5bf104e1f14aa2.tar.gz rust-12e70929d66577f74cb6214bba5bf104e1f14aa2.zip | |
Add BPF target
This change adds the bpfel-unknown-none and bpfeb-unknown-none targets which can be used to generate little endian and big endian BPF
Diffstat (limited to 'compiler/rustc_llvm/src')
| -rw-r--r-- | compiler/rustc_llvm/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/src/lib.rs b/compiler/rustc_llvm/src/lib.rs index 555aefb1929..122627eb500 100644 --- a/compiler/rustc_llvm/src/lib.rs +++ b/compiler/rustc_llvm/src/lib.rs @@ -167,4 +167,12 @@ pub fn initialize_available_targets() { LLVMInitializeWebAssemblyAsmPrinter, LLVMInitializeWebAssemblyAsmParser ); + init_target!( + llvm_component = "bpf", + LLVMInitializeBPFTargetInfo, + LLVMInitializeBPFTarget, + LLVMInitializeBPFTargetMC, + LLVMInitializeBPFAsmPrinter, + LLVMInitializeBPFAsmParser + ); } |
