[cfe-commits] r50891 - in /cfe/trunk: clang.xcodeproj/project.pbxproj lib/Basic/Targets.cpp
Chris Lattner
sabre at nondot.org
Thu May 8 23:17:04 PDT 2008
Author: lattner
Date: Fri May 9 01:17:04 2008
New Revision: 50891
URL: http://llvm.org/viewvc/llvm-project?rev=50891&view=rev
Log:
set long/pointers to 64-bits on ppc64/x86-64
Modified:
cfe/trunk/clang.xcodeproj/project.pbxproj
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/clang.xcodeproj/project.pbxproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/clang.xcodeproj/project.pbxproj?rev=50891&r1=50890&r2=50891&view=diff
==============================================================================
--- cfe/trunk/clang.xcodeproj/project.pbxproj (original)
+++ cfe/trunk/clang.xcodeproj/project.pbxproj Fri May 9 01:17:04 2008
@@ -866,7 +866,6 @@
DED7D7500A5242C7003AD0FB /* Basic */ = {
isa = PBXGroup;
children = (
- 03F50AC50D416EAA00B9CF60 /* Targets.cpp */,
DED7D75D0A5242C7003AD0FB /* Diagnostic.cpp */,
DED7D75E0A5242C7003AD0FB /* FileManager.cpp */,
DE3986F30CB8D50C00223765 /* IdentifierTable.cpp */,
@@ -874,6 +873,7 @@
35707EFD0CD0F5CC000B2204 /* SourceLocation.cpp */,
DED7D76D0A5242C7003AD0FB /* SourceManager.cpp */,
DED626C80AE0C065001E80A4 /* TargetInfo.cpp */,
+ 03F50AC50D416EAA00B9CF60 /* Targets.cpp */,
DED7D76E0A5242C7003AD0FB /* TokenKinds.cpp */,
);
name = Basic;
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=50891&r1=50890&r2=50891&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri May 9 01:17:04 2008
@@ -658,7 +658,9 @@
namespace {
class DarwinPPC64TargetInfo : public DarwinTargetInfo {
public:
- DarwinPPC64TargetInfo(const std::string& triple) : DarwinTargetInfo(triple) {}
+ DarwinPPC64TargetInfo(const std::string& triple) : DarwinTargetInfo(triple) {
+ LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
+ }
virtual void getTargetDefines(std::vector<char> &Defines) const {
DarwinTargetInfo::getTargetDefines(Defines);
@@ -737,7 +739,9 @@
namespace {
class DarwinX86_64TargetInfo : public DarwinTargetInfo {
public:
- DarwinX86_64TargetInfo(const std::string& triple) :DarwinTargetInfo(triple) {}
+ DarwinX86_64TargetInfo(const std::string& triple) : DarwinTargetInfo(triple) {
+ LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
+ }
virtual void getTargetDefines(std::vector<char> &Defines) const {
DarwinTargetInfo::getTargetDefines(Defines);
More information about the cfe-commits
mailing list