diff options
author | Ismail Donmez <ismail@i10z.com> | 2017-04-24 11:18:29 +0000 |
---|---|---|
committer | Ismail Donmez <ismail@i10z.com> | 2017-04-24 11:18:29 +0000 |
commit | 6dda31729c85397d31a526b4e405c561609d9f5e (patch) | |
tree | c0ac511da0a7abd8d05c566d9452a55078af01e3 /llvm/lib/Support/Triple.cpp | |
parent | a37c0d99c9498e378219afb1ca0ef64d0876df27 (diff) | |
download | bcm5719-llvm-6dda31729c85397d31a526b4e405c561609d9f5e.tar.gz bcm5719-llvm-6dda31729c85397d31a526b4e405c561609d9f5e.zip |
Add SUSE vendor
Summary: SUSE's ARM triples end with -gnueabi even though they are hard-float. This requires special handling of SUSE ARM triples. Hence we need a way to differentiate the SUSE as vendor. This CL adds that.
Reviewers: chandlerc, compnerd, echristo, rengolin
Reviewed By: rengolin
Subscribers: aemerson, rengolin, llvm-commits
Differential Revision: https://reviews.llvm.org/D32426
llvm-svn: 301174
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 64d5977e2eb..f3a654d7d2b 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -161,6 +161,7 @@ StringRef Triple::getVendorTypeName(VendorType Kind) { case Myriad: return "myriad"; case AMD: return "amd"; case Mesa: return "mesa"; + case SUSE: return "suse"; } llvm_unreachable("Invalid VendorType!"); @@ -443,6 +444,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { .Case("myriad", Triple::Myriad) .Case("amd", Triple::AMD) .Case("mesa", Triple::Mesa) + .Case("suse", Triple::SUSE) .Default(Triple::UnknownVendor); } |