remove the source location arguments to various target query methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47954 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/GRExprEngine.cpp b/Analysis/GRExprEngine.cpp
index 2481f56..4cd942b 100644
--- a/Analysis/GRExprEngine.cpp
+++ b/Analysis/GRExprEngine.cpp
@@ -277,8 +277,7 @@
   // While most of this can be assumed (such as the signedness), having it
   // just computed makes sure everything makes the same assumptions end-to-end.
   
-  unsigned bits = getContext().getTypeSize(CondE->getType(),
-                                           CondE->getExprLoc());
+  unsigned bits = getContext().getTypeSize(CondE->getType());
 
   APSInt V1(bits, false);
   APSInt V2 = V1;
@@ -716,10 +715,8 @@
   
   uint64_t size = 1;  // Handle sizeof(void)
   
-  if (T != getContext().VoidTy) {
-    SourceLocation Loc = Ex->getExprLoc();
-    size = getContext().getTypeSize(T, Loc) / 8;
-  }
+  if (T != getContext().VoidTy)
+    size = getContext().getTypeSize(T) / 8;
   
   Nodify(Dst, Ex, Pred,
          SetRVal(Pred->getState(), Ex,
@@ -949,10 +946,9 @@
   if (!T.getTypePtr()->isConstantSizeType())
     return;
   
-  SourceLocation Loc = U->getExprLoc();
-  uint64_t size = getContext().getTypeSize(T, Loc) / 8;                
+  uint64_t size = getContext().getTypeSize(T) / 8;                
   ValueState* St = Pred->getState();
-  St = SetRVal(St, U, NonLVal::MakeVal(ValMgr, size, U->getType(), Loc));
+  St = SetRVal(St, U, NonLVal::MakeVal(ValMgr, size, U->getType()));
 
   Nodify(Dst, U, Pred, St);
 }
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp
index d8a3112..c00800c 100644
--- a/Analysis/GRSimpleVals.cpp
+++ b/Analysis/GRSimpleVals.cpp
@@ -160,7 +160,7 @@
   
   llvm::APSInt V = cast<nonlval::ConcreteInt>(X).getValue();
   V.setIsUnsigned(T->isUnsignedIntegerType() || T->isPointerType());
-  V.extOrTrunc(ValMgr.getContext().getTypeSize(T, SourceLocation()));
+  V.extOrTrunc(ValMgr.getContext().getTypeSize(T));
   
   if (T->isPointerType())
     return lval::ConcreteInt(ValMgr.getValue(V));
@@ -182,7 +182,7 @@
   
   llvm::APSInt V = cast<lval::ConcreteInt>(X).getValue();
   V.setIsUnsigned(T->isUnsignedIntegerType() || T->isPointerType());
-  V.extOrTrunc(ValMgr.getContext().getTypeSize(T, SourceLocation()));
+  V.extOrTrunc(ValMgr.getContext().getTypeSize(T));
 
   return nonlval::ConcreteInt(ValMgr.getValue(V));
 }
diff --git a/Analysis/RValues.cpp b/Analysis/RValues.cpp
index 6369da4..36ea2df 100644
--- a/Analysis/RValues.cpp
+++ b/Analysis/RValues.cpp
@@ -207,10 +207,8 @@
 // Utility methods for constructing Non-LVals.
 //===----------------------------------------------------------------------===//
 
-NonLVal NonLVal::MakeVal(ValueManager& ValMgr, uint64_t X, QualType T,
-                             SourceLocation Loc) {  
-
-  return nonlval::ConcreteInt(ValMgr.getValue(X, T, Loc));
+NonLVal NonLVal::MakeVal(ValueManager& ValMgr, uint64_t X, QualType T) {  
+  return nonlval::ConcreteInt(ValMgr.getValue(X, T));
 }
 
 NonLVal NonLVal::MakeVal(ValueManager& ValMgr, IntegerLiteral* I) {
@@ -220,7 +218,6 @@
 }
 
 NonLVal NonLVal::MakeIntTruthVal(ValueManager& ValMgr, bool b) {
-
   return nonlval::ConcreteInt(ValMgr.getTruthValue(b));
 }
 
diff --git a/Analysis/ValueManager.cpp b/Analysis/ValueManager.cpp
index 2a8d23d..a02f3e4 100644
--- a/Analysis/ValueManager.cpp
+++ b/Analysis/ValueManager.cpp
@@ -48,10 +48,9 @@
   return getValue(V);
 }
 
-const llvm::APSInt& ValueManager::getValue(uint64_t X, QualType T,
-                                           SourceLocation Loc) {
+const llvm::APSInt& ValueManager::getValue(uint64_t X, QualType T) {
   
-  unsigned bits = Ctx.getTypeSize(T, Loc);
+  unsigned bits = Ctx.getTypeSize(T);
   llvm::APSInt V(bits, T->isUnsignedIntegerType());
   V = X;
   return getValue(V);
diff --git a/Analysis/ValueState.cpp b/Analysis/ValueState.cpp
index 388dba6..f47e14b 100644
--- a/Analysis/ValueState.cpp
+++ b/Analysis/ValueState.cpp
@@ -258,8 +258,7 @@
         
       case Stmt::CharacterLiteralClass: {
         CharacterLiteral* C = cast<CharacterLiteral>(E);
-        return NonLVal::MakeVal(ValMgr, C->getValue(), C->getType(),
-                                C->getLoc());
+        return NonLVal::MakeVal(ValMgr, C->getValue(), C->getType());
       }
         
       case Stmt::IntegerLiteralClass: {
@@ -271,7 +270,6 @@
         // subexpression that has a value.
         
       case Stmt::ImplicitCastExprClass: {
-
         ImplicitCastExpr* C = cast<ImplicitCastExpr>(E);
         QualType CT = C->getType();
         
@@ -341,8 +339,7 @@
   switch (E->getStmtClass()) {
     case Stmt::CharacterLiteralClass: {
       CharacterLiteral* C = cast<CharacterLiteral>(E);
-      return NonLVal::MakeVal(ValMgr, C->getValue(), C->getType(),
-                              C->getLoc());
+      return NonLVal::MakeVal(ValMgr, C->getValue(), C->getType());
     }
       
     case Stmt::IntegerLiteralClass: {