]> granicus.if.org Git - clang/commitdiff
Tweaks for PS3 target.
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 18 Dec 2009 14:21:08 +0000 (14:21 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 18 Dec 2009 14:21:08 +0000 (14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index e5a4c434c341de2990d4ccd1486740213fcccccb..77699dbb4ef3d0691df79ba13227b0e17b0ad040 100644 (file)
@@ -323,11 +323,14 @@ protected:
     Define(Defs, "__PPU__", "1");
     Define(Defs, "__CELLOS_LV2__", "1");
     Define(Defs, "__ELF__", "1");
+    Define(Defs, "__LP32__", "1");
   }
 public:
   PS3PPUTargetInfo(const std::string& triple)
     : OSTargetInfo<Target>(triple) {
     this->UserLabelPrefix = "";
+    this->LongWidth = this->LongAlign = this->PointerWidth = this->PointerAlign = 32;
+    this->SizeType = TargetInfo::UnsignedInt;
   }
 };