summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitba506db49816e1ab05511043db9eb4c0fa699d47 (patch)
tree429841054cbac7d0c1f91b7a4936caeeab9653e9 /llvm/lib/CodeGen
parent5f93bb92998a4333598cd2bf290f3cedbe3d5707 (diff)
downloadbcm5719-llvm-ba506db49816e1ab05511043db9eb4c0fa699d47.tar.gz
bcm5719-llvm-ba506db49816e1ab05511043db9eb4c0fa699d47.zip
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. llvm-svn: 190346
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 547d2535180..79bb8849e23 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud