summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-05-20 22:50:35 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-05-20 22:50:35 +0000
commite63d5d1633b84bac7623967d1cbef19e3aeecc9d (patch)
treefe07f0c38e64c8853c4bed0087fbc282d61ef100 /llvm/lib/IR/DebugInfo.cpp
parent0519e142b82b7e67d5072d0f16bcd5ae7ef80847 (diff)
downloadbcm5719-llvm-e63d5d1633b84bac7623967d1cbef19e3aeecc9d.tar.gz
bcm5719-llvm-e63d5d1633b84bac7623967d1cbef19e3aeecc9d.zip
PR14606: Debug Info for namespace aliases/DW_TAG_imported_module
This resolves the last of the PR14606 failures in the GDB 7.5 test suite by implementing an optional name field for DW_TAG_imported_modules/DIImportedEntities and using that to implement C++ namespace aliases (eg: "namespace X = Y;"). llvm-svn: 182328
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 8a0fb8d5b10..6a014aee5f3 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -591,7 +591,8 @@ bool DITemplateValueParameter::Verify() const {
/// \brief Verify that the imported module descriptor is well formed.
bool DIImportedEntity::Verify() const {
- return isImportedEntity() && DbgNode->getNumOperands() == 4;
+ return isImportedEntity() &&
+ (DbgNode->getNumOperands() == 4 || DbgNode->getNumOperands() == 5);
}
/// getOriginalTypeSize - If this type is derived from a base type then
OpenPOWER on IntegriCloud