diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-16 20:42:14 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-16 20:42:14 +0000 |
commit | d4e106e39d155cc6fd8efb3364d20e3a77673165 (patch) | |
tree | ffdae1ddc218ce3569d33f62c1b9f2734ef0bf59 /llvm/lib/IR/DebugInfo.cpp | |
parent | 9eddbbd563629fbb11d5d1840194fa46132ddca4 (diff) | |
download | bcm5719-llvm-d4e106e39d155cc6fd8efb3364d20e3a77673165.tar.gz bcm5719-llvm-d4e106e39d155cc6fd8efb3364d20e3a77673165.zip |
DebugInfo: Allow the addition of other (such as static data) members to a record type after construction
Plus a type cleanup & minor fix to enumerate members of declarations.
llvm-svn: 188577
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 0f7ddb5961c..cffc2ac1f22 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -647,7 +647,7 @@ void DICompositeType::setTypeArray(DIArray Elements, DIArray TParams) { DbgNode = N; } -void DICompositeType::addMember(DISubprogram S) { +void DICompositeType::addMember(DIDescriptor D) { SmallVector<llvm::Value *, 16> M; DIArray OrigM = getTypeArray(); unsigned Elements = OrigM.getNumElements(); @@ -656,7 +656,7 @@ void DICompositeType::addMember(DISubprogram S) { M.reserve(Elements + 1); for (unsigned i = 0; i != Elements; ++i) M.push_back(OrigM.getElement(i)); - M.push_back(S); + M.push_back(D); setTypeArray(DIArray(MDNode::get(DbgNode->getContext(), M))); } |