projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support artificial parameters in function types.
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
DwarfCompileUnit.cpp
diff --git
a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 2e4ed5d9d062768c40952dd028448c50d60aa765..f0655e678473a2b260f14c09234dd8865ef49017 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@
-913,6
+913,8
@@
void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
} else {
DIE *Arg = new DIE(dwarf::DW_TAG_formal_parameter);
addType(Arg, DIType(Ty));
+ if (DIType(Ty).isArtificial())
+ addFlag(Arg, dwarf::DW_AT_artificial);
Buffer.addChild(Arg);
}
}