diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-14 23:13:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-14 23:13:28 +0000 |
commit | 04d6d478650503e74d2f7e8337e6c2b381ba1bc7 (patch) | |
tree | 9c0f35d638ad0d3f967891c691b1bbaa747eaa21 /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 21931efc4d1216267cc1aed156155d1a8d174956 (diff) | |
download | bcm5719-llvm-04d6d478650503e74d2f7e8337e6c2b381ba1bc7.tar.gz bcm5719-llvm-04d6d478650503e74d2f7e8337e6c2b381ba1bc7.zip |
Add support to emit debug info for C++0x nullptr type.
llvm-svn: 139751
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index a3dea40d87b..aeb039ce71c 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -130,7 +130,14 @@ MDNode *DIVariable::getInlinedAt() const { /// isBasicType - Return true if the specified tag is legal for /// DIBasicType. bool DIDescriptor::isBasicType() const { - return DbgNode && getTag() == dwarf::DW_TAG_base_type; + if (!DbgNode) return false; + switch (getTag()) { + case dwarf::DW_TAG_base_type: + case dwarf::DW_TAG_unspecified_type: + return true; + default: + return false; + } } /// isDerivedType - Return true if the specified tag is legal for DIDerivedType. |