[llvm] r190346 - Always add global names. We're adding them in the rest of the code

Eric Christopher echristo at gmail.com
Mon Sep 9 13:03:20 PDT 2013


Author: echristo
Date: Mon Sep  9 15:03:20 2013
New Revision: 190346

URL: http://llvm.org/viewvc/llvm-project?rev=190346&view=rev
Log:
Always add global names. We're adding them in the rest of the code
as well as types.

No functional change as they're not emitted unless the option
is true anyhow.

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=190346&r1=190345&r2=190346&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Sep  9 15:03:20 2013
@@ -769,9 +769,8 @@ void DwarfDebug::constructSubprogramDIE(
   // Add to context owner.
   TheCU->addToContextOwner(SubprogramDie, SP.getContext());
 
-  // Expose as global, if requested.
-  if (HasDwarfPubSections)
-    TheCU->addGlobalName(SP.getName(), SubprogramDie);
+  // Expose as a global name.
+  TheCU->addGlobalName(SP.getName(), SubprogramDie);
 }
 
 void DwarfDebug::constructImportedEntityDIE(CompileUnit *TheCU,





More information about the llvm-commits mailing list