diff options
author | Eli Bendersky <eliben@google.com> | 2013-01-22 18:02:49 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-01-22 18:02:49 +0000 |
commit | 0893e1079d897b3bb806234089f8af9e5d398df0 (patch) | |
tree | dd5871862a23a9a3ceeae70ecd419bc70541a199 /llvm/lib/Support/Triple.cpp | |
parent | 2446649c1e3fca16d7524d75260d3d588c36e671 (diff) | |
download | bcm5719-llvm-0893e1079d897b3bb806234089f8af9e5d398df0.tar.gz bcm5719-llvm-0893e1079d897b3bb806234089f8af9e5d398df0.zip |
Initial patch for x32 ABI support.
Add the x32 environment kind to the triple, and separate the concept of
pointer size and callee save stack slot size, since they're not equal
on x32.
llvm-svn: 173175
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 eefb96bfee0..ad7b18942e4 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -140,6 +140,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { case GNU: return "gnu"; case GNUEABIHF: return "gnueabihf"; case GNUEABI: return "gnueabi"; + case GNUX32: return "gnux32"; case EABI: return "eabi"; case MachO: return "macho"; case Android: return "android"; @@ -284,6 +285,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { .StartsWith("eabi", Triple::EABI) .StartsWith("gnueabihf", Triple::GNUEABIHF) .StartsWith("gnueabi", Triple::GNUEABI) + .StartsWith("gnux32", Triple::GNUX32) .StartsWith("gnu", Triple::GNU) .StartsWith("macho", Triple::MachO) .StartsWith("android", Triple::Android) |