aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-28 07:34:31 +0000
committerEric Christopher <echristo@apple.com>2012-03-28 07:34:31 +0000
commit663e0cf73dcf2bfbbfc22b49c739d54916652d1c (patch)
tree88eed87ea70f86b187e3a39e3c52a319b5c750e1 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent30fe94ea43bd122fb4fd26b84bcf62f8096d4293 (diff)
downloadexternal_llvm-663e0cf73dcf2bfbbfc22b49c739d54916652d1c.zip
external_llvm-663e0cf73dcf2bfbbfc22b49c739d54916652d1c.tar.gz
external_llvm-663e0cf73dcf2bfbbfc22b49c739d54916652d1c.tar.bz2
Fix the output of the DW_TAG_friend tag to include DW_AT_friend
and not the rest of the member tag. Fixes PR11695 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 4e63c3f..2013419 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -260,8 +260,10 @@ public:
/// addToContextOwner - Add Die into the list of its context owner's children.
void addToContextOwner(DIE *Die, DIDescriptor Context);
- /// addType - Add a new type attribute to the specified entity.
- void addType(DIE *Entity, DIType Ty);
+ /// addType - Add a new type attribute to the specified entity. This takes
+ /// and attribute parameter because DW_AT_friend attributes are also
+ /// type references.
+ void addType(DIE *Entity, DIType Ty, unsigned Attribute = dwarf::DW_AT_type);
/// getOrCreateNameSpace - Create a DIE for DINameSpace.
DIE *getOrCreateNameSpace(DINameSpace NS);