diff options
Diffstat (limited to 'llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp')
-rw-r--r-- | llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp b/llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp index be879495fed..5dfa915034b 100644 --- a/llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp +++ b/llvm/lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp @@ -6,24 +6,23 @@ // //===----------------------------------------------------------------------===// -#include "BPF.h" +#include "TargetInfo/BPFTargetInfo.h" #include "llvm/Support/TargetRegistry.h" + using namespace llvm; -namespace llvm { -Target &getTheBPFleTarget() { +Target &llvm::getTheBPFleTarget() { static Target TheBPFleTarget; return TheBPFleTarget; } -Target &getTheBPFbeTarget() { +Target &llvm::getTheBPFbeTarget() { static Target TheBPFbeTarget; return TheBPFbeTarget; } -Target &getTheBPFTarget() { +Target &llvm::getTheBPFTarget() { static Target TheBPFTarget; return TheBPFTarget; } -} // namespace llvm extern "C" void LLVMInitializeBPFTargetInfo() { TargetRegistry::RegisterTarget(getTheBPFTarget(), "bpf", "BPF (host endian)", |