/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/lib/Target/Hexagon/TargetInfo/HexagonTargetInfo.cpp
Line | Count | Source |
1 | | //===-- HexagonTargetInfo.cpp - Hexagon Target Implementation ------------------===// |
2 | | // |
3 | | // The LLVM Compiler Infrastructure |
4 | | // |
5 | | // This file is distributed under the University of Illinois Open Source |
6 | | // License. See LICENSE.TXT for details. |
7 | | // |
8 | | //===----------------------------------------------------------------------===// |
9 | | |
10 | | #include "Hexagon.h" |
11 | | #include "llvm/IR/Module.h" |
12 | | #include "llvm/Support/TargetRegistry.h" |
13 | | using namespace llvm; |
14 | | |
15 | 1.16M | Target &llvm::getTheHexagonTarget() { |
16 | 1.16M | static Target TheHexagonTarget; |
17 | 1.16M | return TheHexagonTarget; |
18 | 1.16M | } |
19 | | |
20 | 132k | extern "C" void LLVMInitializeHexagonTargetInfo() { |
21 | 132k | RegisterTarget<Triple::hexagon, /*HasJIT=*/false> X(getTheHexagonTarget(), |
22 | 132k | "hexagon", "Hexagon"); |
23 | 132k | } |