diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-12-02 18:44:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-12-02 18:44:29 +0000 |
commit | 3c1d33241c9eed48b7d1370eb4ef7aa913633fff (patch) | |
tree | 4540c511648c2e888f07a27fbd75a177b59e3f07 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 5389f74655bb975c7f74a8c4db9c48a396ac56bf (diff) | |
download | bcm5719-llvm-3c1d33241c9eed48b7d1370eb4ef7aa913633fff.tar.gz bcm5719-llvm-3c1d33241c9eed48b7d1370eb4ef7aa913633fff.zip |
DebugInfo: Type Units: Propagate the correct DW_AT_language into type units.
llvm-svn: 196130
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index e6b3331cf62..48003c06ebe 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -989,7 +989,7 @@ DIE *CompileUnit::getOrCreateTypeDIE(const MDNode *TyNode) { else if (Ty.isCompositeType()) { DICompositeType CTy(Ty); if (shouldCreateTypeUnit(CTy, DD)) { - DD->addTypeUnitType(TyDIE, CTy); + DD->addTypeUnitType(getLanguage(), TyDIE, CTy); // Skip updating the accellerator tables since this is not the full type return TyDIE; } |