summaryrefslogtreecommitdiff
path: root/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-16 01:22:23 +0000
committerEric Christopher <echristo@gmail.com>2013-01-16 01:22:23 +0000
commit6b6061f01171bd3d4e32022efa45428d4f9941ee (patch)
treeaae4e22e2a4ca079f2ff59c85f524318eb91d5a0 /lib/IR/DebugInfo.cpp
parent171192f149dce679cd520f85ffced4789448b017 (diff)
downloadllvm-6b6061f01171bd3d4e32022efa45428d4f9941ee.tar.gz
llvm-6b6061f01171bd3d4e32022efa45428d4f9941ee.tar.bz2
llvm-6b6061f01171bd3d4e32022efa45428d4f9941ee.tar.xz
Define metadata interfaces for describing a static data member
of a class. Emit static data member declarations and definitions through correctly. Part of PR14471. Patch by Paul Robinson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r--lib/IR/DebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 7083495c72..876aff8575 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/lib/IR/DebugInfo.cpp
@@ -1101,6 +1101,8 @@ void DIType::printInternal(raw_ostream &OS) const {
OS << " [fwd]";
if (isVector())
OS << " [vector]";
+ if (isStaticMember())
+ OS << " [static]";
}
void DIDerivedType::printInternal(raw_ostream &OS) const {