summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit649d46396fcca26fdd3bdf317a0c7991de32c30c (patch)
tree9f69c6f7f4387d8b45d0727315160c3dad4b9ff4 /llvm
parent906152a20f68a942f64a27bf31e5c5232b444e8f (diff)
downloadbcm5719-llvm-649d46396fcca26fdd3bdf317a0c7991de32c30c.tar.gz
bcm5719-llvm-649d46396fcca26fdd3bdf317a0c7991de32c30c.zip
Now, getTag() is used by DwarfWriter.
llvm-svn: 61718
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/DebugInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h
index fd195476944..e9a7cb1bcf9 100644
--- a/llvm/include/llvm/Analysis/DebugInfo.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud