<div dir="ltr">Hi Krzysztof,<div><br></div><div style>Please make sure you don't specify the triple if you don't need one, or restrict the target if it's specific.</div><div style><br></div><div style><a href="http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/5003/steps/check-all/logs/LLVM%20%3A%3A%20DebugInfo__dwarf-public-names.ll">http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/5003/steps/check-all/logs/LLVM%20%3A%3A%20DebugInfo__dwarf-public-names.ll</a><br>
</div><div style><br></div><div style>Follow other examples on DebugInfo dir.</div><div style><br></div><div style>cheers,</div><div style>--renato</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 February 2013 18:00, Krzysztof Parzyszek <span dir="ltr"><<a href="mailto:kparzysz@codeaurora.org" target="_blank">kparzysz@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: kparzysz<br>
Date: Tue Feb 12 12:00:14 2013<br>
New Revision: 174981<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=174981&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=174981&view=rev</a><br>
Log:<br>
Allow optionally generating pubnames section in DWARF info. Introduce<br>
option "generate-dwarf-pubnames" to control it, set to "false" by default.<br>
<br>
Added:<br>
llvm/trunk/test/DebugInfo/dwarf-public-names.ll<br>
Modified:<br>
llvm/trunk/include/llvm/MC/MCObjectFileInfo.h<br>
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp<br>
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h<br>
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp<br>
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h<br>
llvm/trunk/lib/MC/MCObjectFileInfo.cpp<br>
<br>
Modified: llvm/trunk/include/llvm/MC/MCObjectFileInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/MC/MCObjectFileInfo.h (original)<br>
+++ llvm/trunk/include/llvm/MC/MCObjectFileInfo.h Tue Feb 12 12:00:14 2013<br>
@@ -97,6 +97,9 @@ protected:<br>
const MCSection *DwarfARangesSection;<br>
const MCSection *DwarfRangesSection;<br>
const MCSection *DwarfMacroInfoSection;<br>
+ // The pubnames section is no longer generated by default. The generation<br>
+ // can be enabled by a compiler flag.<br>
+ const MCSection *DwarfPubNamesSection;<br>
<br>
// DWARF5 Experimental Debug Info Sections<br>
/// DwarfAccelNamesSection, DwarfAccelObjCSection,<br>
@@ -209,6 +212,7 @@ public:<br>
const MCSection *getDwarfInfoSection() const { return DwarfInfoSection; }<br>
const MCSection *getDwarfLineSection() const { return DwarfLineSection; }<br>
const MCSection *getDwarfFrameSection() const { return DwarfFrameSection; }<br>
+ const MCSection *getDwarfPubNamesSection() const{return DwarfPubNamesSection;}<br>
const MCSection *getDwarfPubTypesSection() const{return DwarfPubTypesSection;}<br>
const MCSection *getDwarfDebugInlineSection() const {<br>
return DwarfDebugInlineSection;<br>
<br>
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Tue Feb 12 12:00:14 2013<br>
@@ -1311,8 +1311,10 @@ void CompileUnit::createGlobalVariableDI<br>
addType(VariableDIE, GTy);<br>
<br>
// Add scoping info.<br>
- if (!GV.isLocalToUnit())<br>
+ if (!GV.isLocalToUnit()) {<br>
addFlag(VariableDIE, dwarf::DW_AT_external);<br>
+ addGlobalName(GV.getName(), VariableDIE);<br>
+ }<br>
<br>
// Add line number info.<br>
addSourceLine(VariableDIE, GV);<br>
<br>
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h (original)<br>
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h Tue Feb 12 12:00:14 2013<br>
@@ -64,6 +64,10 @@ class CompileUnit {<br>
/// descriptors to debug information entries using a DIEEntry proxy.<br>
DenseMap<const MDNode *, DIEEntry *> MDNodeToDIEEntryMap;<br>
<br>
+ /// GlobalNames - A map of globally visible named entities for this unit.<br>
+ ///<br>
+ StringMap<DIE*> GlobalNames;<br>
+<br>
/// GlobalTypes - A map of globally visible types for this unit.<br>
///<br>
StringMap<DIE*> GlobalTypes;<br>
@@ -99,6 +103,7 @@ public:<br>
unsigned getUniqueID() const { return UniqueID; }<br>
unsigned getLanguage() const { return Language; }<br>
DIE* getCUDie() const { return CUDie.get(); }<br>
+ const StringMap<DIE*> &getGlobalNames() const { return GlobalNames; }<br>
const StringMap<DIE*> &getGlobalTypes() const { return GlobalTypes; }<br>
<br>
const StringMap<std::vector<DIE*> > &getAccelNames() const {<br>
@@ -119,6 +124,10 @@ public:<br>
///<br>
bool hasContent() const { return !CUDie->getChildren().empty(); }<br>
<br>
+ /// addGlobalName - Add a new global entity to the compile unit.<br>
+ ///<br>
+ void addGlobalName(StringRef Name, DIE *Die) { GlobalNames[Name] = Die; }<br>
+<br>
/// addGlobalType - Add a new global type to the compile unit.<br>
///<br>
void addGlobalType(DIType Ty);<br>
<br>
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Feb 12 12:00:14 2013<br>
@@ -54,6 +54,10 @@ static cl::opt<bool> UnknownLocations("u<br>
cl::desc("Make an absence of debug location information explicit."),<br>
cl::init(false));<br>
<br>
+static cl::opt<bool> GenerateDwarfPubNamesSection("generate-dwarf-pubnames",<br>
+ cl::Hidden, cl::ZeroOrMore, cl::init(false),<br>
+ cl::desc("Generate DWARF pubnames section"));<br>
+<br>
namespace {<br>
enum DefaultOnOff {<br>
Default, Enable, Disable<br>
@@ -733,7 +737,9 @@ void DwarfDebug::constructSubprogramDIE(<br>
// Add to context owner.<br>
TheCU->addToContextOwner(SubprogramDie, SP.getContext());<br>
<br>
- return;<br>
+ // Expose as global, if requested.<br>
+ if (GenerateDwarfPubNamesSection)<br>
+ TheCU->addGlobalName(SP.getName(), SubprogramDie);<br>
}<br>
<br>
// Collect debug info from named mdnodes such as llvm.dbg.enum and llvm.dbg.ty.<br>
@@ -1028,6 +1034,10 @@ void DwarfDebug::endModule() {<br>
emitAccelTypes();<br>
}<br>
<br>
+ // Emit info into a debug pubnames section, if requested.<br>
+ if (GenerateDwarfPubNamesSection)<br>
+ emitDebugPubnames();<br>
+<br>
// Emit info into a debug pubtypes section.<br>
// TODO: When we don't need the option anymore we can<br>
// remove all of the code that adds to the table.<br>
@@ -1784,6 +1794,8 @@ void DwarfDebug::emitSectionLabels() {<br>
DwarfLineSectionSym =<br>
emitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");<br>
emitSectionSym(Asm, TLOF.getDwarfLocSection());<br>
+ if (GenerateDwarfPubNamesSection)<br>
+ emitSectionSym(Asm, TLOF.getDwarfPubNamesSection());<br>
emitSectionSym(Asm, TLOF.getDwarfPubTypesSection());<br>
DwarfStrSectionSym =<br>
emitSectionSym(Asm, TLOF.getDwarfStrSection(), "info_string");<br>
@@ -2119,6 +2131,61 @@ void DwarfDebug::emitAccelTypes() {<br>
AT.Emit(Asm, SectionBegin, &InfoHolder);<br>
}<br>
<br>
+/// emitDebugPubnames - Emit visible names into a debug pubnames section.<br>
+///<br>
+void DwarfDebug::emitDebugPubnames() {<br>
+ const MCSection *ISec = Asm->getObjFileLowering().getDwarfInfoSection();<br>
+<br>
+ typedef DenseMap<const MDNode*, CompileUnit*> CUMapType;<br>
+ for (CUMapType::iterator I = CUMap.begin(), E = CUMap.end(); I != E; ++I) {<br>
+ CompileUnit *TheCU = I->second;<br>
+ unsigned ID = TheCU->getUniqueID();<br>
+<br>
+ if (TheCU->getGlobalNames().empty())<br>
+ continue;<br>
+<br>
+ // Start the dwarf pubnames section.<br>
+ Asm->OutStreamer.SwitchSection(<br>
+ Asm->getObjFileLowering().getDwarfPubNamesSection());<br>
+<br>
+ Asm->OutStreamer.AddComment("Length of Public Names Info");<br>
+ Asm->EmitLabelDifference(Asm->GetTempSymbol("pubnames_end", ID),<br>
+ Asm->GetTempSymbol("pubnames_begin", ID), 4);<br>
+<br>
+ Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubnames_begin", ID));<br>
+<br>
+ Asm->OutStreamer.AddComment("DWARF Version");<br>
+ Asm->EmitInt16(dwarf::DWARF_VERSION);<br>
+<br>
+ Asm->OutStreamer.AddComment("Offset of Compilation Unit Info");<br>
+ Asm->EmitSectionOffset(Asm->GetTempSymbol(ISec->getLabelBeginName(), ID),<br>
+ DwarfInfoSectionSym);<br>
+<br>
+ Asm->OutStreamer.AddComment("Compilation Unit Length");<br>
+ Asm->EmitLabelDifference(Asm->GetTempSymbol(ISec->getLabelEndName(), ID),<br>
+ Asm->GetTempSymbol(ISec->getLabelBeginName(), ID),<br>
+ 4);<br>
+<br>
+ const StringMap<DIE*> &Globals = TheCU->getGlobalNames();<br>
+ for (StringMap<DIE*>::const_iterator<br>
+ GI = Globals.begin(), GE = Globals.end(); GI != GE; ++GI) {<br>
+ const char *Name = GI->getKeyData();<br>
+ const DIE *Entity = GI->second;<br>
+<br>
+ Asm->OutStreamer.AddComment("DIE offset");<br>
+ Asm->EmitInt32(Entity->getOffset());<br>
+<br>
+ if (Asm->isVerbose())<br>
+ Asm->OutStreamer.AddComment("External Name");<br>
+ Asm->OutStreamer.EmitBytes(StringRef(Name, strlen(Name)+1), 0);<br>
+ }<br>
+<br>
+ Asm->OutStreamer.AddComment("End Mark");<br>
+ Asm->EmitInt32(0);<br>
+ Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("pubnames_end", ID));<br>
+ }<br>
+}<br>
+<br>
void DwarfDebug::emitDebugPubTypes() {<br>
for (DenseMap<const MDNode *, CompileUnit *>::iterator I = CUMap.begin(),<br>
E = CUMap.end(); I != E; ++I) {<br>
<br>
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)<br>
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Tue Feb 12 12:00:14 2013<br>
@@ -500,6 +500,9 @@ private:<br>
/// \brief Emit type dies into a hashed accelerator table.<br>
void emitAccelTypes();<br>
<br>
+ /// \brief Emit visible names into a debug pubnames section.<br>
+ void emitDebugPubnames();<br>
+<br>
/// \brief Emit visible types into a debug pubtypes section.<br>
void emitDebugPubTypes();<br>
<br>
<br>
Modified: llvm/trunk/lib/MC/MCObjectFileInfo.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=174981&r1=174980&r2=174981&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=174981&r1=174980&r2=174981&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp (original)<br>
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp Tue Feb 12 12:00:14 2013<br>
@@ -186,6 +186,10 @@ void MCObjectFileInfo::InitMachOMCObject<br>
Ctx->getMachOSection("__DWARF", "__debug_frame",<br>
MCSectionMachO::S_ATTR_DEBUG,<br>
SectionKind::getMetadata());<br>
+ DwarfPubNamesSection =<br>
+ Ctx->getMachOSection("__DWARF", "__debug_pubnames",<br>
+ MCSectionMachO::S_ATTR_DEBUG,<br>
+ SectionKind::getMetadata());<br>
DwarfPubTypesSection =<br>
Ctx->getMachOSection("__DWARF", "__debug_pubtypes",<br>
MCSectionMachO::S_ATTR_DEBUG,<br>
@@ -400,6 +404,9 @@ void MCObjectFileInfo::InitELFMCObjectFi<br>
DwarfFrameSection =<br>
Ctx->getELFSection(".debug_frame", ELF::SHT_PROGBITS, 0,<br>
SectionKind::getMetadata());<br>
+ DwarfPubNamesSection =<br>
+ Ctx->getELFSection(".debug_pubnames", ELF::SHT_PROGBITS, 0,<br>
+ SectionKind::getMetadata());<br>
DwarfPubTypesSection =<br>
Ctx->getELFSection(".debug_pubtypes", ELF::SHT_PROGBITS, 0,<br>
SectionKind::getMetadata());<br>
@@ -543,6 +550,11 @@ void MCObjectFileInfo::InitCOFFMCObjectF<br>
COFF::IMAGE_SCN_MEM_DISCARDABLE |<br>
COFF::IMAGE_SCN_MEM_READ,<br>
SectionKind::getMetadata());<br>
+ DwarfPubNamesSection =<br>
+ Ctx->getCOFFSection(".debug_pubnames",<br>
+ COFF::IMAGE_SCN_MEM_DISCARDABLE |<br>
+ COFF::IMAGE_SCN_MEM_READ,<br>
+ SectionKind::getMetadata());<br>
DwarfPubTypesSection =<br>
Ctx->getCOFFSection(".debug_pubtypes",<br>
COFF::IMAGE_SCN_MEM_DISCARDABLE |<br>
<br>
Added: llvm/trunk/test/DebugInfo/dwarf-public-names.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/dwarf-public-names.ll?rev=174981&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/dwarf-public-names.ll?rev=174981&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/test/DebugInfo/dwarf-public-names.ll (added)<br>
+++ llvm/trunk/test/DebugInfo/dwarf-public-names.ll Tue Feb 12 12:00:14 2013<br>
@@ -0,0 +1,127 @@<br>
+; RUN: llc -generate-dwarf-pubnames -filetype=obj -o %t.o < %s<br>
+; RUN: llvm-dwarfdump -debug-dump=pubnames %t.o | FileCheck %s<br>
+;<br>
+; ModuleID = 'dwarf-public-names.cpp'<br>
+;<br>
+; Generated from:<br>
+;<br>
+; struct C {<br>
+; void member_function();<br>
+; static int static_member_function();<br>
+; static int static_member_variable;<br>
+; };<br>
+;<br>
+; int C::static_member_variable = 0;<br>
+;<br>
+; void C::member_function() {<br>
+; static_member_variable = 0;<br>
+; }<br>
+;<br>
+; int C::static_member_function() {<br>
+; return static_member_variable;<br>
+; }<br>
+;<br>
+; C global_variable;<br>
+;<br>
+; int global_function() {<br>
+; return -1;<br>
+; }<br>
+;<br>
+; namespace ns {<br>
+; void global_namespace_function() {<br>
+; global_variable.member_function();<br>
+; }<br>
+; int global_namespace_variable = 1;<br>
+; }<br>
+<br>
+; Skip the output to the header of the pubnames section.<br>
+; CHECK: debug_pubnames<br>
+<br>
+; Check for each name in the output.<br>
+; CHECK: global_namespace_variable<br>
+; CHECK: global_namespace_function<br>
+; CHECK: static_member_function<br>
+; CHECK: global_variable<br>
+; CHECK: global_function<br>
+; CHECK: member_function<br>
+<br>
+target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"<br>
+target triple = "x86_64-unknown-linux-gnu"<br>
+<br>
+%struct.C = type { i8 }<br>
+<br>
+@_ZN1C22static_member_variableE = global i32 0, align 4<br>
+@global_variable = global %struct.C zeroinitializer, align 1<br>
+@_ZN2ns25global_namespace_variableE = global i32 1, align 4<br>
+<br>
+define void @_ZN1C15member_functionEv(%struct.C* %this) nounwind uwtable align 2 {<br>
+entry:<br>
+ %this.addr = alloca %struct.C*, align 8<br>
+ store %struct.C* %this, %struct.C** %this.addr, align 8<br>
+ call void @llvm.dbg.declare(metadata !{%struct.C** %this.addr}, metadata !28), !dbg !30<br>
+ %this1 = load %struct.C** %this.addr<br>
+ store i32 0, i32* @_ZN1C22static_member_variableE, align 4, !dbg !31<br>
+ ret void, !dbg !32<br>
+}<br>
+<br>
+declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone<br>
+<br>
+define i32 @_ZN1C22static_member_functionEv() nounwind uwtable align 2 {<br>
+entry:<br>
+ %0 = load i32* @_ZN1C22static_member_variableE, align 4, !dbg !33<br>
+ ret i32 %0, !dbg !33<br>
+}<br>
+<br>
+define i32 @_Z15global_functionv() nounwind uwtable {<br>
+entry:<br>
+ ret i32 -1, !dbg !34<br>
+}<br>
+<br>
+define void @_ZN2ns25global_namespace_functionEv() nounwind uwtable {<br>
+entry:<br>
+ call void @_ZN1C15member_functionEv(%struct.C* @global_variable), !dbg !35<br>
+ ret void, !dbg !36<br>
+}<br>
+<br>
+attributes #0 = { nounwind uwtable }<br>
+attributes #1 = { nounwind readnone }<br>
+<br>
+!<a href="http://llvm.dbg.cu" target="_blank">llvm.dbg.cu</a> = !{!0}<br>
+<br>
+!0 = metadata !{i32 786449, i32 0, i32 4, metadata !"dwarf-public-names.cpp", metadata !"/usr2/kparzysz/s.hex/t", metadata !"clang version 3.3 (<a href="http://llvm.org/git/clang.git" target="_blank">http://llvm.org/git/clang.git</a> a09cd8103a6a719cb2628cdf0c91682250a17bd2) (<a href="http://llvm.org/git/llvm.git" target="_blank">http://llvm.org/git/llvm.git</a> 47d03cec0afca0c01ae42b82916d1d731716cd20)", i1 true, i1 false, metadata !"", i32 0, metadata !1, metadata !1, metadata !2, metadata !24} ; [ DW_TAG_compile_unit ] [/usr2/kparzysz/s.hex/t/dwarf-public-names.cpp] [DW_LANG_C_plus_plus]<br>
+!1 = metadata !{i32 0}<br>
+!2 = metadata !{metadata !3, metadata !18, metadata !19, metadata !20}<br>
+!3 = metadata !{i32 786478, i32 0, null, metadata !"member_function", metadata !"member_function", metadata !"_ZN1C15member_functionEv", metadata !4, i32 9, metadata !5, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void (%struct.C*)* @_ZN1C15member_functionEv, null, metadata !12, metadata !1, i32 9} ; [ DW_TAG_subprogram ] [line 9] [def] [member_function]<br>
+!4 = metadata !{i32 786473, metadata !"dwarf-public-names.cpp", metadata !"/usr2/kparzysz/s.hex/t", null} ; [ DW_TAG_file_type ]<br>
+!5 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !6, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]<br>
+!6 = metadata !{null, metadata !7}<br>
+!7 = metadata !{i32 786447, i32 0, metadata !"", i32 0, i32 0, i64 64, i64 64, i64 0, i32 1088, metadata !8} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [artificial] [from C]<br>
+!8 = metadata !{i32 786451, null, metadata !"C", metadata !4, i32 1, i64 8, i64 8, i32 0, i32 0, null, metadata !9, i32 0, null, null} ; [ DW_TAG_structure_type ] [C] [line 1, size 8, align 8, offset 0] [from ]<br>
+!9 = metadata !{metadata !10, metadata !12, metadata !14}<br>
+!10 = metadata !{i32 786445, metadata !8, metadata !"static_member_variable", metadata !4, i32 4, i64 0, i64 0, i64 0, i32 4096, metadata !11, null} ; [ DW_TAG_member ] [static_member_variable] [line 4, size 0, align 0, offset 0] [static] [from int]<br>
+!11 = metadata !{i32 786468, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]<br>
+!12 = metadata !{i32 786478, i32 0, metadata !8, metadata !"member_function", metadata !"member_function", metadata !"_ZN1C15member_functionEv", metadata !4, i32 2, metadata !5, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, metadata !13, i32 2} ; [ DW_TAG_subprogram ] [line 2] [member_function]<br>
+!13 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]<br>
+!14 = metadata !{i32 786478, i32 0, metadata !8, metadata !"static_member_function", metadata !"static_member_function", metadata !"_ZN1C22static_member_functionEv", metadata !4, i32 3, metadata !15, i1 false, i1 false, i32 0, i32 0, null, i32 256, i1 false, null, null, i32 0, metadata !17, i32 3} ; [ DW_TAG_subprogram ] [line 3] [static_member_function]<br>
+!15 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !16, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]<br>
+!16 = metadata !{metadata !11}<br>
+!17 = metadata !{i32 786468} ; [ DW_TAG_base_type ] [line 0, size 0, align 0, offset 0]<br>
+!18 = metadata !{i32 786478, i32 0, null, metadata !"static_member_function", metadata !"static_member_function", metadata !"_ZN1C22static_member_functionEv", metadata !4, i32 13, metadata !15, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @_ZN1C22static_member_functionEv, null, metadata !14, metadata !1, i32 13} ; [ DW_TAG_subprogram ] [line 13] [def] [static_member_function]<br>
+!19 = metadata !{i32 786478, i32 0, metadata !4, metadata !"global_function", metadata !"global_function", metadata !"_Z15global_functionv", metadata !4, i32 19, metadata !15, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, i32 ()* @_Z15global_functionv, null, null, metadata !1, i32 19} ; [ DW_TAG_subprogram ] [line 19] [def] [global_function]<br>
+!20 = metadata !{i32 786478, i32 0, metadata !21, metadata !"global_namespace_function", metadata !"global_namespace_function", metadata !"_ZN2ns25global_namespace_functionEv", metadata !4, i32 24, metadata !22, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void ()* @_ZN2ns25global_namespace_functionEv, null, null, metadata !1, i32 24} ; [ DW_TAG_subprogram ] [line 24] [def] [global_namespace_function]<br>
+!21 = metadata !{i32 786489, null, metadata !"ns", metadata !4, i32 23} ; [ DW_TAG_namespace ] [/usr2/kparzysz/s.hex/t/dwarf-public-names.cpp]<br>
+!22 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !23, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]<br>
+!23 = metadata !{null}<br>
+!24 = metadata !{metadata !25, metadata !26, metadata !27}<br>
+!25 = metadata !{i32 786484, i32 0, metadata !8, metadata !"static_member_variable", metadata !"static_member_variable", metadata !"_ZN1C22static_member_variableE", metadata !4, i32 7, metadata !11, i32 0, i32 1, i32* @_ZN1C22static_member_variableE, metadata !10} ; [ DW_TAG_variable ] [static_member_variable] [line 7] [def]<br>
+!26 = metadata !{i32 786484, i32 0, null, metadata !"global_variable", metadata !"global_variable", metadata !"", metadata !4, i32 17, metadata !8, i32 0, i32 1, %struct.C* @global_variable, null} ; [ DW_TAG_variable ] [global_variable] [line 17] [def]<br>
+!27 = metadata !{i32 786484, i32 0, metadata !21, metadata !"global_namespace_variable", metadata !"global_namespace_variable", metadata !"_ZN2ns25global_namespace_variableE", metadata !4, i32 27, metadata !11, i32 0, i32 1, i32* @_ZN2ns25global_namespace_variableE, null} ; [ DW_TAG_variable ] [global_namespace_variable] [line 27] [def]<br>
+!28 = metadata !{i32 786689, metadata !3, metadata !"this", metadata !4, i32 16777225, metadata !29, i32 1088, i32 0} ; [ DW_TAG_arg_variable ] [this] [line 9]<br>
+!29 = metadata !{i32 786447, null, metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !8} ; [ DW_TAG_pointer_type ] [line 0, size 64, align 64, offset 0] [from C]<br>
+!30 = metadata !{i32 9, i32 0, metadata !3, null}<br>
+!31 = metadata !{i32 10, i32 0, metadata !3, null}<br>
+!32 = metadata !{i32 11, i32 0, metadata !3, null}<br>
+!33 = metadata !{i32 14, i32 0, metadata !18, null}<br>
+!34 = metadata !{i32 20, i32 0, metadata !19, null}<br>
+!35 = metadata !{i32 25, i32 0, metadata !20, null}<br>
+!36 = metadata !{i32 26, i32 0, metadata !20, null}<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>