summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-12-18 14:21:08 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2009-12-18 14:21:08 +0000
commit6f8dba7f9e284498eb57280089a58b7017d1b557 (patch)
tree7f59b21f34037b4db61b5974e5f6a7cb2dcdecf2 /clang/lib/Basic/Targets.cpp
parent551446b31b7e2b166a3cb90c83bc504ea6e9589f (diff)
downloadbcm5719-llvm-6f8dba7f9e284498eb57280089a58b7017d1b557.tar.gz
bcm5719-llvm-6f8dba7f9e284498eb57280089a58b7017d1b557.zip
Tweaks for PS3 target.
llvm-svn: 91685
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index e5a4c434c34..77699dbb4ef 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -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;
}
};
OpenPOWER on IntegriCloud