diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-04 22:21:24 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-04 22:21:24 +0000 |
commit | e31e072c3363e49eb1e2b24181384663b4ffb36c (patch) | |
tree | 6c6241aa0bb384c5516221a001db1af8db860d1e /llvm/lib/CodeGen | |
parent | 99dab3b43c3a40a1281ba510e507d94a0ec3d336 (diff) | |
download | bcm5719-llvm-e31e072c3363e49eb1e2b24181384663b4ffb36c.tar.gz bcm5719-llvm-e31e072c3363e49eb1e2b24181384663b4ffb36c.zip |
Remove hack ensuring that darwin didn't produce dwarf > 3 for modules
without a limiting factor.
Update all testcases accordingly.
llvm-svn: 190002
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6835f40cd8e..535b094f168 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -161,12 +161,8 @@ DIType DbgVariable::getType() const { /// Return Dwarf Version by checking module flags. static unsigned getDwarfVersionFromModule(const Module *M) { Value *Val = M->getModuleFlag("Dwarf Version"); - // If we don't have a value in the module go ahead and use the default in - // dwarf::DWARF_VERSION. - // FIXME: Apple ld has a problem parsing compilation units that specify a - // dwarf version of greater than 3. if (!Val) - return Triple(M->getTargetTriple()).isOSDarwin() ? 3 : dwarf::DWARF_VERSION; + return dwarf::DWARF_VERSION; return cast<ConstantInt>(Val)->getZExtValue(); } |