diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-04 21:26:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-04 21:26:56 +0000 |
commit | b72ef638f4e205ce488d59255024b60ff38fd214 (patch) | |
tree | 43ace1af3ceee594b4b146e1b769cd3140aace89 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 888af62c1bbcb299fa95a8740c1bf5ce53a61423 (diff) | |
download | bcm5719-llvm-b72ef638f4e205ce488d59255024b60ff38fd214.tar.gz bcm5719-llvm-b72ef638f4e205ce488d59255024b60ff38fd214.zip |
Revert r189902 as the workaround shouldn't be necessary anymore.
llvm-svn: 189999
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-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(); } |