From aca8d54c4f9a81e46fc94425392203d414b83376 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Dec 2009 21:12:29 +0000 Subject: [PATCH] rename ivar to be more descriptive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92226 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/IRBuilder.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 9e6ef57e0ce..3abdca0cbfc 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -61,39 +61,39 @@ templategetContext()), Folder(F) { + : DbgMDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), Folder(F) { SetInsertPoint(TheBB); } explicit IRBuilder(BasicBlock *TheBB) - : MDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), + : DbgMDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), Folder(Context) { SetInsertPoint(TheBB); } IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP, const T& F) - : MDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), Folder(F) { + : DbgMDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), Folder(F) { SetInsertPoint(TheBB, IP); } IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP) - : MDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), + : DbgMDKind(0), CurDbgLocation(0), Context(TheBB->getContext()), Folder(Context) { SetInsertPoint(TheBB, IP); } @@ -136,8 +136,8 @@ public: /// SetCurrentDebugLocation - Set location information used by debugging /// information. void SetCurrentDebugLocation(MDNode *L) { - if (MDKind == 0) - MDKind = Context.getMetadata().getMDKindID("dbg"); + if (DbgMDKind == 0) + DbgMDKind = Context.getMetadata().getMDKindID("dbg"); CurDbgLocation = L; } @@ -146,14 +146,14 @@ public: /// SetDebugLocation - Set location information for the given instruction. void SetDebugLocation(Instruction *I) { if (CurDbgLocation) - Context.getMetadata().addMD(MDKind, CurDbgLocation, I); + Context.getMetadata().addMD(DbgMDKind, CurDbgLocation, I); } /// SetDebugLocation - Set location information for the given instruction. void SetDebugLocation(Instruction *I, MDNode *Loc) { - if (MDKind == 0) - MDKind = Context.getMetadata().getMDKindID("dbg"); - Context.getMetadata().addMD(MDKind, Loc, I); + if (DbgMDKind == 0) + DbgMDKind = Context.getMetadata().getMDKindID("dbg"); + Context.getMetadata().addMD(DbgMDKind, Loc, I); } /// Insert - Insert and return the specified instruction. @@ -161,7 +161,7 @@ public: InstTy *Insert(InstTy *I, const Twine &Name = "") const { this->InsertHelper(I, Name, BB, InsertPt); if (CurDbgLocation) - Context.getMetadata().addMD(MDKind, CurDbgLocation, I); + Context.getMetadata().addMD(DbgMDKind, CurDbgLocation, I); return I; }