Always add global names. We're adding them in the rest of the code
authorEric Christopher <echristo@gmail.com>
Mon, 9 Sep 2013 20:03:20 +0000 (20:03 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 9 Sep 2013 20:03:20 +0000 (20:03 +0000)
as well as types.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190346 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 547d25351806f660ab349b540261d2f6a1a64b7c..79bb8849e23724f09013bd71466e0e736d1fa249 100644 (file)
@@ -769,9 +769,8 @@ void DwarfDebug::constructSubprogramDIE(CompileUnit *TheCU,
   // 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,