diff options
author | Richard Trieu <rtrieu@google.com> | 2019-05-14 21:33:53 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-05-14 21:33:53 +0000 |
commit | b26592e04d59666b54c3221528f299fc9b10768c (patch) | |
tree | 9728d1e84ed9c6e4c326e8bfe2920d5bf4acd740 /llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp | |
parent | 9b234b388d34b39232943c57e7c79bc9313f50d1 (diff) | |
download | bcm5719-llvm-b26592e04d59666b54c3221528f299fc9b10768c.tar.gz bcm5719-llvm-b26592e04d59666b54c3221528f299fc9b10768c.zip |
[AArch64] Create a TargetInfo header. NFC
Move the declarations of getThe<Name>Target() functions into a new header in
TargetInfo and make users of these functions include this new header.
This fixes a layering problem.
llvm-svn: 360709
Diffstat (limited to 'llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp b/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp index 08276e08a39..7f02da6a951 100644 --- a/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp +++ b/llvm/lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp @@ -6,31 +6,30 @@ // //===----------------------------------------------------------------------===// -#include "llvm/ADT/Triple.h" +#include "TargetInfo/AArch64TargetInfo.h" #include "llvm/Support/TargetRegistry.h" + using namespace llvm; -namespace llvm { -Target &getTheAArch64leTarget() { +Target &llvm::getTheAArch64leTarget() { static Target TheAArch64leTarget; return TheAArch64leTarget; } -Target &getTheAArch64beTarget() { +Target &llvm::getTheAArch64beTarget() { static Target TheAArch64beTarget; return TheAArch64beTarget; } -Target &getTheAArch64_32Target() { +Target &llvm::getTheAArch64_32Target() { static Target TheAArch64leTarget; return TheAArch64leTarget; } -Target &getTheARM64Target() { +Target &llvm::getTheARM64Target() { static Target TheARM64Target; return TheARM64Target; } -Target &getTheARM64_32Target() { +Target &llvm::getTheARM64_32Target() { static Target TheARM64_32Target; return TheARM64_32Target; } -} // namespace llvm extern "C" void LLVMInitializeAArch64TargetInfo() { // Now register the "arm64" name for use with "-march". We don't want it to |