diff options
Diffstat (limited to 'lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp')
-rw-r--r-- | lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp b/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp new file mode 100644 index 0000000..818a992 --- /dev/null +++ b/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp @@ -0,0 +1,18 @@ +//===-- BPFTargetInfo.cpp - BPF Target Implementation ---------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "BPF.h" +#include "llvm/Support/TargetRegistry.h" +using namespace llvm; + +Target llvm::TheBPFTarget; + +extern "C" void LLVMInitializeBPFTargetInfo() { + RegisterTarget<Triple::bpf> X(TheBPFTarget, "bpf", "BPF"); +} |