diff options
author | David Woodhouse <dwmw2@infradead.org> | 2014-01-20 12:02:25 +0000 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2014-01-20 12:02:25 +0000 |
commit | 70ece0ada7f221b089183142440f927fa2ea3b1b (patch) | |
tree | d30ef974b52c2e0bead727bd9be00e31c6f0209c /lib/Support | |
parent | 1d9ab2556024514c403135bb8fe5da34fc4f0c63 (diff) | |
download | llvm-70ece0ada7f221b089183142440f927fa2ea3b1b.tar.gz llvm-70ece0ada7f221b089183142440f927fa2ea3b1b.tar.bz2 llvm-70ece0ada7f221b089183142440f927fa2ea3b1b.tar.xz |
[x86] Support i386-*-*-code16 triple for emitting 16-bit code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Triple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 273316a0a6..1947f43aa1 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -149,6 +149,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { case GNUEABIHF: return "gnueabihf"; case GNUEABI: return "gnueabi"; case GNUX32: return "gnux32"; + case CODE16: return "code16"; case EABI: return "eabi"; case EABIHF: return "eabihf"; case MachO: return "macho"; @@ -303,6 +304,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { .StartsWith("gnueabihf", Triple::GNUEABIHF) .StartsWith("gnueabi", Triple::GNUEABI) .StartsWith("gnux32", Triple::GNUX32) + .StartsWith("code16", Triple::CODE16) .StartsWith("gnu", Triple::GNU) .StartsWith("macho", Triple::MachO) .StartsWith("android", Triple::Android) |