[cfe-commits] r60758 - in /cfe/trunk: include/clang/Analysis/PathSensitive/SVals.h lib/Analysis/SVals.cpp

Zhongxing Xu xuzhongxing at gmail.com
Tue Dec 9 02:51:32 PST 2008


Author: zhongxingxu
Date: Tue Dec  9 04:51:19 2008
New Revision: 60758

URL: http://llvm.org/viewvc/llvm-project?rev=60758&view=rev
Log:
Add utility method. Remove an unused method.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/SVals.h
    cfe/trunk/lib/Analysis/SVals.cpp

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/SVals.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/SVals.h?rev=60758&r1=60757&r2=60758&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/SVals.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/SVals.h Tue Dec  9 04:51:19 2008
@@ -208,11 +208,11 @@
   
 public:
   void print(llvm::raw_ostream& Out) const;
+
+  static Loc MakeVal(const MemRegion* R);
     
   static Loc MakeVal(AddrLabelExpr* E);
   
-  static Loc MakeVal(StringLiteral* S);
-  
   // Implement isa<T> support.
   static inline bool classof(const SVal* V) {
     return V->getBaseKind() == LocKind;

Modified: cfe/trunk/lib/Analysis/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/SVals.cpp?rev=60758&r1=60757&r2=60758&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/SVals.cpp (original)
+++ cfe/trunk/lib/Analysis/SVals.cpp Tue Dec  9 04:51:19 2008
@@ -316,6 +316,8 @@
 // Utility methods for constructing Locs.
 //===----------------------------------------------------------------------===//
 
+Loc Loc::MakeVal(const MemRegion* R) { return loc::MemRegionVal(R); }
+
 Loc Loc::MakeVal(AddrLabelExpr* E) { return loc::GotoLabel(E->getLabel()); }
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list