summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4d23a4ae1f426bcf420943ba14c0e2f382b1f303 (patch)
tree3630d6dac3224fd837dbdd25dc7cbecc76c46564 /llvm/lib/IR/DebugInfo.cpp
parent2ccf3a291d5daf705595e333c438bdc8260df94e (diff)
downloadbcm5719-llvm-4d23a4ae1f426bcf420943ba14c0e2f382b1f303.tar.gz
bcm5719-llvm-4d23a4ae1f426bcf420943ba14c0e2f382b1f303.zip
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! llvm-svn: 172590
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 7083495c72f..876aff85752 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud