summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-23 06:53:23 +0000
committerChris Lattner <sabre@nondot.org>2010-01-23 06:53:23 +0000
commit0bfd279b37c9039fb093f871f8831e85bd46649d (patch)
tree310cc81be4c6461af224d49f1d25a6bb21f45e5e /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parent685508cf494ee73690f77fc929382f53b157c1ca (diff)
downloadbcm5719-llvm-0bfd279b37c9039fb093f871f8831e85bd46649d.tar.gz
bcm5719-llvm-0bfd279b37c9039fb093f871f8831e85bd46649d.zip
mcize visibility directives.
llvm-svn: 94295
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index fd3dbf5cf18..2ae16c0664a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -230,8 +230,9 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
// If corresponding function is hidden, this should be too.
if (TheFunc->hasHiddenVisibility())
- if (const char *HiddenDirective = MAI->getHiddenDirective())
- O << HiddenDirective << *EHFrameInfo.FunctionEHSym << '\n';
+ if (MCSymbolAttr HiddenAttr = MAI->getHiddenVisibilityAttr())
+ Asm->OutStreamer.EmitSymbolAttribute(EHFrameInfo.FunctionEHSym,
+ HiddenAttr);
// If there are no calls then you can't unwind. This may mean we can omit the
// EH Frame, but some environments do not handle weak absolute symbols. If
OpenPOWER on IntegriCloud