diff options
author | Eric Christopher <echristo@gmail.com> | 2014-01-11 00:28:12 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-01-11 00:28:12 +0000 |
commit | 942f22c4396701968b7a759e022b6f3ff2449167 (patch) | |
tree | 81cdfa8e0a42ba14db65cb8b5208a15ccef36516 /llvm/lib/CodeGen | |
parent | ceec7b02fad1092a4804b683c1b926efd0f34883 (diff) | |
download | bcm5719-llvm-942f22c4396701968b7a759e022b6f3ff2449167.tar.gz bcm5719-llvm-942f22c4396701968b7a759e022b6f3ff2449167.zip |
Revert r198979 - accidental commit.
llvm-svn: 198981
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9a21595a435..f2cc172efa7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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, Module *M) else HasDwarfPubSections = DwarfPubSections == Enable; - DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber - : getDwarfVersion(MMI->getModule()); + DwarfVersion = DwarfVersionNumber + ? DwarfVersionNumber + : getDwarfVersionFromModule(MMI->getModule()); { NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled); |