Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().

llvm-svn: 79502
This commit is contained in:
Zhongxing Xu 2009-08-20 01:23:34 +00:00
parent 8b4d51af58
commit 068928b2a6
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ public:
ProgramPoint getLocation() const { return Location; }
const LocationContext *getLocationContext() const {
return getLocation().getContext();
return getLocation().getLocationContext();
}
const GRState* getState() const {

View File

@ -73,7 +73,7 @@ protected:
public:
Kind getKind() const { return K; }
const LocationContext *getContext() const { return L; }
const LocationContext *getLocationContext() const { return L; }
// For use with DenseMap. This hash is probably slow.
unsigned getHashValue() const {

View File

@ -1213,7 +1213,7 @@ const Stmt* BugReport::getStmt() const {
const Stmt *S = NULL;
if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP)) {
CFGBlock &Exit = ProgP.getContext()->getCFG()->getExit();
CFGBlock &Exit = ProgP.getLocationContext()->getCFG()->getExit();
if (BE->getBlock() == &Exit)
S = GetPreviousStmt(EndNode);
}