[llvm] r198981 - Revert r198979 - accidental commit.
Eric Christopher
echristo at gmail.com
Fri Jan 10 16:28:12 PST 2014
Author: echristo
Date: Fri Jan 10 18:28:12 2014
New Revision: 198981
URL: http://llvm.org/viewvc/llvm-project?rev=198981&view=rev
Log:
Revert r198979 - accidental commit.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=198981&r1=198980&r2=198981&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Jan 10 18:28:12 2014
@@ -168,9 +168,8 @@ DIType DbgVariable::getType() const {
} // end llvm namespace
-/// Return Dwarf Version by checking module flags and returning
-/// the default version otherwise.
-static unsigned getDwarfVersion(const Module *M) {
+/// Return Dwarf Version by checking module flags.
+static unsigned getDwarfVersionFromModule(const Module *M) {
Value *Val = M->getModuleFlag("Dwarf Version");
if (!Val)
return dwarf::DWARF_VERSION;
@@ -210,8 +209,9 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Mo
else
HasDwarfPubSections = DwarfPubSections == Enable;
- DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber
- : getDwarfVersion(MMI->getModule());
+ DwarfVersion = DwarfVersionNumber
+ ? DwarfVersionNumber
+ : getDwarfVersionFromModule(MMI->getModule());
{
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
More information about the llvm-commits
mailing list