summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 05:28:23 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 05:28:23 +0000
commitda790ea006cb4007196393fefd24a8ac48b3e35b (patch)
tree9b81668d4437d3154889eb8c8abd6fe789ac1520 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parent3f3fb970e4d3c40668bda2a4ffd1e1b82aa22590 (diff)
downloadbcm5719-llvm-da790ea006cb4007196393fefd24a8ac48b3e35b.tar.gz
bcm5719-llvm-da790ea006cb4007196393fefd24a8ac48b3e35b.zip
prune #includes, MMI can never be null
llvm-svn: 100408
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 0a1e763bd5a..72c97a43085 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -13,6 +13,7 @@
#include "DwarfException.h"
#include "llvm/Module.h"
+#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
@@ -917,8 +918,6 @@ void DwarfException::EndModule() {
/// BeginFunction - Gather pre-function exception information. Assumes it's
/// being emitted immediately after the function entry point.
void DwarfException::BeginFunction(const MachineFunction *MF) {
- if (!MMI || !Asm->MAI->doesSupportExceptionHandling()) return;
-
TimeRegion Timer(ExceptionTimer);
shouldEmitTable = shouldEmitMoves = false;
OpenPOWER on IntegriCloud