]> granicus.if.org Git - clang/commitdiff
parameterize long long.
authorChris Lattner <sabre@nondot.org>
Fri, 9 May 2008 05:50:02 +0000 (05:50 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 May 2008 05:50:02 +0000 (05:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50887 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp

index dc28e8d2bd262c2477912ada064dcacce7a85b8a..d135fe00ab060f3c831d42ac71311c4e1d33e3d8 100644 (file)
@@ -39,6 +39,7 @@ protected:
   unsigned IntWidth, IntAlign;
   unsigned DoubleWidth, DoubleAlign;
   unsigned LongWidth, LongAlign;
+  unsigned LongLongWidth, LongLongAlign;
   
   const llvm::fltSemantics *FloatFormat, *DoubleFormat, *LongDoubleFormat;
 
@@ -93,8 +94,8 @@ public:
   
   /// getLongLongWidth/Align - Return the size of 'signed long long' and
   /// 'unsigned long long' for this target, in bits.
-  unsigned getLongLongWidth() const { return 64; } // FIXME
-  unsigned getLongLongAlign() const { return 64; } // FIXME
+  unsigned getLongLongWidth() const { return LongLongWidth; }
+  unsigned getLongLongAlign() const { return LongLongAlign; }
   
   /// getWcharWidth/Align - Return the size of 'wchar_t' for this target, in
   /// bits.
index 259a6170cd82551b2f666f50d495dd2ce4603380..dd1fe648d42ee88599f86e98b1329c6e6669ffcb 100644 (file)
@@ -24,8 +24,9 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) {
   // Set defaults.  These should be overridden by concrete targets as needed.
   CharIsSigned = true;
   WCharWidth = WCharAlign = 32;
-  LongWidth = LongAlign = 32;
   IntWidth = IntAlign = 32;
+  LongWidth = LongAlign = 32;
+  LongLongWidth = LongLongAlign = 64;
   DoubleWidth = 64;
   DoubleAlign = 32;
   FloatFormat = &llvm::APFloat::IEEEsingle;