From a42c7d5db12db0a2fe6ee26a65050d7f27f528bc Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 4 Sep 2013 21:26:56 +0000 Subject: [PATCH] Revert r189902 as the workaround shouldn't be necessary anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189999 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6835f40cd8e..535b094f168 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(Val)->getZExtValue(); }