From 74132874c4ebecaa0ff10ab5f86a911c8dff080e Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 5 Jan 2009 18:06:21 +0000 Subject: [PATCH] Now, getTag() is used by DwarfWriter. llvm-svn: 61718 --- include/llvm/Analysis/DebugInfo.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index fd195476944..e9a7cb1bcf9 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -48,9 +48,6 @@ namespace llvm { /// not, the debug info is corrupt and we ignore it. DIDescriptor(GlobalVariable *GV, unsigned RequiredTag); - unsigned getTag() const { - return getUnsignedField(0) & ~VersionMask; - } unsigned getVersion() const { return getUnsignedField(0) & VersionMask; } @@ -76,6 +73,10 @@ namespace llvm { bool isNull() const { return GV == 0; } GlobalVariable *getGV() const { return GV; } + + unsigned getTag() const { + return getUnsignedField(0) & ~VersionMask; + } }; /// DIAnchor - A wrapper for various anchor descriptors.