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.

llvm-svn: 239689

clang/lib/Basic/Targets.cpp

index 6b4712a..3100243 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: