eliminate ComputeWCharInfo.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48048 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp
index 1f0bece..16dad1c 100644
--- a/Basic/TargetInfo.cpp
+++ b/Basic/TargetInfo.cpp
@@ -50,6 +50,14 @@
 
 //===----------------------------------------------------------------------===//
 
+TargetInfo::TargetInfo(const TargetInfoImpl *TII) {
+  Target = TII;
+  
+  // Initialize Cache values to uncomputed.
+  TII->getWCharInfo(WCharWidth, WCharAlign);
+}
+
+
 TargetInfo::~TargetInfo() {
   delete Target;
 }
@@ -68,13 +76,6 @@
   Target->getTargetDefines(Buffer);
 }
 
-/// ComputeWCharWidth - Determine the width of the wchar_t type for the primary
-/// target, diagnosing whether this is non-portable across the secondary
-/// targets.
-void TargetInfo::ComputeWCharInfo() {
-  Target->getWCharInfo(WCharWidth, WCharAlign);
-}
-
 
 /// getTargetBuiltins - Return information about target-specific builtins for
 /// the current primary target, and info about which builtins are non-portable