projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d58147
)
Add declaration attribute to a variable DIE, if there is a separate DIE for the defin...
author
Devang Patel
<dpatel@apple.com>
Tue, 9 Feb 2010 01:58:33 +0000
(
01:58
+0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 9 Feb 2010 01:58:33 +0000
(
01:58
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95646
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 6c4f1cda2f10edfb652d1e70616e7427062523c0..0182027a1386c436f555fbb5d45e50218368fe59 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-1720,6
+1720,7
@@
void DwarfDebug::constructGlobalVariableDIE(MDNode *N) {
addObjectLabel(Block, 0, dwarf::DW_FORM_udata,
Asm->GetGlobalValueSymbol(DI_GV.getGlobal()));
addBlock(VariableSpecDIE, dwarf::DW_AT_location, 0, Block);
+ addUInt(VariableDie, dwarf::DW_AT_declaration, dwarf::DW_FORM_flag, 1);
ModuleCU->addDie(VariableSpecDIE);
} else {
DIEBlock *Block = new DIEBlock();