diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-09-09 20:03:20 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-09-09 20:03:20 +0000 |
| commit | 28b020d373a0706afc19c869ac4efce4a83e6090 (patch) | |
| tree | 560549ca934a28212732acf729f6709a86a36200 /lib/CodeGen | |
| parent | 574793250890a55103c53f5ffaf6933db1e2e388 (diff) | |
| download | llvm-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')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
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, |
