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 | efc47ec528c32f09fa32445f54ee966b462add0f (patch) | |
tree | 0f0d1d6fb69a261e58c7c21fecee6c32f2ae738d /lib | |
parent | 6509593cb64669d8d4416a83f1417f4e68632fa1 (diff) | |
download | external_llvm-efc47ec528c32f09fa32445f54ee966b462add0f.zip external_llvm-efc47ec528c32f09fa32445f54ee966b462add0f.tar.gz external_llvm-efc47ec528c32f09fa32445f54ee966b462add0f.tar.bz2 |
Remove hack ensuring that darwin didn't produce dwarf > 3 for modules
without a limiting factor.
Update all testcases accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6835f40..535b094 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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(); } |