summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-09 20:03:20 +0000
committerEric Christopher <echristo@gmail.com>2013-09-09 20:03:20 +0000
commit28b020d373a0706afc19c869ac4efce4a83e6090 (patch)
tree560549ca934a28212732acf729f6709a86a36200 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent574793250890a55103c53f5ffaf6933db1e2e388 (diff)
downloadllvm-28b020d373a0706afc19c869ac4efce4a83e6090.tar.gz
llvm-28b020d373a0706afc19c869ac4efce4a83e6090.tar.bz2
llvm-28b020d373a0706afc19c869ac4efce4a83e6090.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 547d253518..79bb8849e2 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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,