]> granicus.if.org Git - clang/commitdiff
Add some basic support for CloudABI on i686.
authorEd Schouten <ed@nuxi.nl>
Sat, 13 Jun 2015 21:33:49 +0000 (21:33 +0000)
committerEd Schouten <ed@nuxi.nl>
Sat, 13 Jun 2015 21:33:49 +0000 (21:33 +0000)
Some people want to experiment with building i686 CloudABI binaries. I
am not entirely sure this is a good idea, as I'd rather see Intel x32
support appear.

As it only requires a two-line change, let's at least provide compiler
to ease experimenting.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239689 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 6b4712a918be3c453e59d0a4b4ba1f04113ec96e..3100243f3f2abbf6d38c5b8e1668dbdc0a78c169 100644 (file)
@@ -7144,6 +7144,8 @@ static TargetInfo *AllocateTarget(const llvm::Triple &Triple) {
       return new DarwinI386TargetInfo(Triple);
 
     switch (os) {
+    case llvm::Triple::CloudABI:
+      return new CloudABITargetInfo<X86_32TargetInfo>(Triple);
     case llvm::Triple::Linux: {
       switch (Triple.getEnvironment()) {
       default: