correctly parameterize long, patch by Nate.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50886 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index 5a4f1c7..dc28e8d 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -38,6 +38,7 @@
   unsigned WCharWidth, WCharAlign;
   unsigned IntWidth, IntAlign;
   unsigned DoubleWidth, DoubleAlign;
+  unsigned LongWidth, LongAlign;
   
   const llvm::fltSemantics *FloatFormat, *DoubleFormat, *LongDoubleFormat;
 
@@ -87,8 +88,8 @@
   
   /// getLongWidth/Align - Return the size of 'signed long' and 'unsigned long'
   /// for this target, in bits.
-  unsigned getLongWidth() const { return 32; } // FIXME
-  unsigned getLongAlign() const { return 32; } // FIXME
+  unsigned getLongWidth() const { return LongWidth; }
+  unsigned getLongAlign() const { return LongAlign; }
   
   /// getLongLongWidth/Align - Return the size of 'signed long long' and
   /// 'unsigned long long' for this target, in bits.
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index 675406e..259a617 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/lib/Basic/TargetInfo.cpp
@@ -24,6 +24,7 @@
   // Set defaults.  These should be overridden by concrete targets as needed.
   CharIsSigned = true;
   WCharWidth = WCharAlign = 32;
+  LongWidth = LongAlign = 32;
   IntWidth = IntAlign = 32;
   DoubleWidth = 64;
   DoubleAlign = 32;