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 | 71d15edaf311c3fa05072e8731bb0b1437f00eec (patch) | |
tree | 77ee4bcb596dcdbd55584e15a58d4ea5761ceb17 /llvm/lib/Support | |
parent | 4d35631a6c1d572ddae962330400c93e1e74c250 (diff) | |
download | bcm5719-llvm-71d15edaf311c3fa05072e8731bb0b1437f00eec.tar.gz bcm5719-llvm-71d15edaf311c3fa05072e8731bb0b1437f00eec.zip |
[x86] Support i386-*-*-code16 triple for emitting 16-bit code
llvm-svn: 199648
Diffstat (limited to 'llvm/lib/Support')
-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 273316a0a6f..1947f43aa11 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/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) |