[cfe-commits] r111077 - /cfe/trunk/lib/Checker/ValueManager.cpp

Jordy Rose jediknil at belkadan.com
Sat Aug 14 13:22:13 PDT 2010


Author: jrose
Date: Sat Aug 14 15:22:12 2010
New Revision: 111077

URL: http://llvm.org/viewvc/llvm-project?rev=111077&view=rev
Log:
Another metadata symbol change (missed a file)

Modified:
    cfe/trunk/lib/Checker/ValueManager.cpp

Modified: cfe/trunk/lib/Checker/ValueManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/ValueManager.cpp?rev=111077&r1=111076&r2=111077&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/ValueManager.cpp (original)
+++ cfe/trunk/lib/Checker/ValueManager.cpp Sat Aug 14 15:22:12 2010
@@ -117,6 +117,19 @@
   return nonloc::SymbolVal(sym);
 }
 
+DefinedSVal ValueManager::getMetadataSymbolVal(const void *SymbolTag,
+                                               const MemRegion *MR,
+                                               const Expr *E, QualType T,
+                                               unsigned Count) {
+  assert(SymbolManager::canSymbolicate(T) && "Invalid metadata symbol type");
+
+  SymbolRef sym = SymMgr.getMetadataSymbol(MR, E, T, Count, SymbolTag);
+
+  if (Loc::IsLocType(T))
+    return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym));
+
+  return nonloc::SymbolVal(sym);
+}
 
 DefinedOrUnknownSVal
 ValueManager::getDerivedRegionValueSymbolVal(SymbolRef parentSymbol,





More information about the cfe-commits mailing list