aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-05 18:06:21 +0000
committerDevang Patel <dpatel@apple.com>2009-01-05 18:06:21 +0000
commit2c1623ae0b041519fecdfdb97b1bda4708b6aeb6 (patch)
treefed378308642069c98ecc8005e2c0f501c8e8a0c /include
parentd68a07650cdb2e18f18f362ba533459aa10e01b6 (diff)
Now, getTag() is used by DwarfWriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index fd19547694..e9a7cb1bcf 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.