diff options
| author | Robert Lytton <robert@xmos.com> | 2013-08-13 09:43:10 +0000 |
|---|---|---|
| committer | Robert Lytton <robert@xmos.com> | 2013-08-13 09:43:10 +0000 |
| commit | 5f15f4daf0e225ea8463fe2ef522c009c95ffc9c (patch) | |
| tree | 61e369072bf6382a48d2a75d6b1d1587b297ed7c /lib/CodeGen/TargetInfo.cpp | |
| parent | 26314e1a3e37efff2d19212d262731bc3a3044c4 (diff) | |
| download | clang-5f15f4daf0e225ea8463fe2ef522c009c95ffc9c.tar.gz clang-5f15f4daf0e225ea8463fe2ef522c009c95ffc9c.tar.bz2 clang-5f15f4daf0e225ea8463fe2ef522c009c95ffc9c.tar.xz | |
Add XCore target
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 3e7f7fedba..bab77e6a45 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -5366,6 +5366,22 @@ public: } // end anonymous namespace +//===----------------------------------------------------------------------===// +// Xcore ABI Implementation +//===----------------------------------------------------------------------===// +namespace { +class XcoreTargetCodeGenInfo : public TargetCodeGenInfo { +public: + XcoreTargetCodeGenInfo(CodeGenTypes &CGT) + :TargetCodeGenInfo(new DefaultABIInfo(CGT)) {} +}; +} // end anonymous namespace + + +//===----------------------------------------------------------------------===// +// Driver code +//===----------------------------------------------------------------------===// + const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { if (TheTargetCodeGenInfo) return *TheTargetCodeGenInfo; @@ -5474,5 +5490,8 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { return *(TheTargetCodeGenInfo = new HexagonTargetCodeGenInfo(Types)); case llvm::Triple::sparcv9: return *(TheTargetCodeGenInfo = new SparcV9TargetCodeGenInfo(Types)); + case llvm::Triple::xcore: + return *(TheTargetCodeGenInfo = new XcoreTargetCodeGenInfo(Types)); + } } |
