From d6c30e58e2576b052d3befef90de14d05c585aed Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 3 Jan 2008 22:07:01 +0000 Subject: [PATCH] De-constified the pointers returned by the Dst() and Src() methods of the various ProgramEdge classes. llvm-svn: 45548 --- clang/include/clang/Analysis/ProgramEdge.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/clang/include/clang/Analysis/ProgramEdge.h b/clang/include/clang/Analysis/ProgramEdge.h index b1f7795cf99e..0962d7146133 100644 --- a/clang/include/clang/Analysis/ProgramEdge.h +++ b/clang/include/clang/Analysis/ProgramEdge.h @@ -66,8 +66,8 @@ public: StmtBlkEdge(const Stmt* S,const CFGBlock* B) : ProgramEdge(S,B,StmtBlk) {} - const Stmt* Src() const { return reinterpret_cast(RawSrc()); } - const CFGBlock* Dst() const { return reinterpret_cast(RawDst()); } + Stmt* Src() const { return reinterpret_cast(RawSrc()); } + CFGBlock* Dst() const { return reinterpret_cast(RawDst()); } static bool classof(const ProgramEdge* E) { return E->getKind() == StmtBlk; } }; @@ -77,8 +77,8 @@ public: BlkStmtEdge(const CFGBlock* B, const Stmt* S) : ProgramEdge(B,S,BlkStmt) {} - const CFGBlock* Src() const { return reinterpret_cast(RawSrc()); } - const Stmt* Dst() const { return reinterpret_cast(RawDst()); } + CFGBlock* Src() const { return reinterpret_cast(RawSrc()); } + Stmt* Dst() const { return reinterpret_cast(RawDst()); } static bool classof(const ProgramEdge* E) { return E->getKind() == StmtBlk; } }; @@ -88,8 +88,8 @@ public: StmtStmtEdge(const Stmt* S1, const Stmt* S2) : ProgramEdge(S1,S2,StmtStmt) {} - const Stmt* Src() const { return reinterpret_cast(RawSrc()); } - const Stmt* Dst() const { return reinterpret_cast(RawDst()); } + Stmt* Src() const { return reinterpret_cast(RawSrc()); } + Stmt* Dst() const { return reinterpret_cast(RawDst()); } static bool classof(const ProgramEdge* E) { return E->getKind() == StmtStmt; } }; @@ -100,8 +100,8 @@ public: BlkBlkEdge(const CFGBlock* B1, const CFGBlock* B2) : ProgramEdge(B1,B2,BlkBlk) {} - const CFGBlock* Src() const { return reinterpret_cast(RawSrc()); } - const CFGBlock* Dst() const { return reinterpret_cast(RawDst()); } + CFGBlock* Src() const { return reinterpret_cast(RawSrc()); } + CFGBlock* Dst() const { return reinterpret_cast(RawDst()); } static bool classof(const ProgramEdge* E) { return E->getKind() == BlkBlk; } };