summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-01-24 22:38:40 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-01-24 22:38:40 +0000
commitb15beb2ae112f4a71a7873b1c877fc6b74257099 (patch)
treec8e6ed9cf4f3c639b767d4fc4fc8964e457dae08 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parent9397fba093f76d112d7b278c8831954610251e4a (diff)
downloadbcm5719-llvm-b15beb2ae112f4a71a7873b1c877fc6b74257099.tar.gz
bcm5719-llvm-b15beb2ae112f4a71a7873b1c877fc6b74257099.zip
Support printing exception section into the current one. This is the case when LSDASection is blank
llvm-svn: 124150
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 5f4818187ad..c4db7d38cba 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -451,7 +451,8 @@ void DwarfException::EmitExceptionTable() {
}
// Begin the exception table.
- Asm->OutStreamer.SwitchSection(LSDASection);
+ if (LSDASection)
+ Asm->OutStreamer.SwitchSection(LSDASection);
Asm->EmitAlignment(2);
// Emit the LSDA.
OpenPOWER on IntegriCloud