aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-01-29 20:48:32 +0000
committerJim Laskey <jlaskey@mac.com>2007-01-29 20:48:32 +0000
commit1b340dc8e20dc1ce204ebdcc2ff11c3dd36888f1 (patch)
treed6b3fe3a8d4075a9338beafc76fc59f27f314cf1 /lib/CodeGen/DwarfWriter.cpp
parentf82aa1cf73b6cdd0c6713ad365bae1204755ee2f (diff)
Flag to control exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/DwarfWriter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 62d9f7c74f..2b9cf74f88 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -29,8 +29,9 @@
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/MRegisterInfo.h"
#include "llvm/Target/TargetData.h"
-#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetFrameInfo.h"
+#include "llvm/Target/TargetMachine.h"
+#include "llvm/Target/TargetOptions.h"
#include <ostream>
#include <string>
using namespace llvm;
@@ -2675,7 +2676,7 @@ public:
/// manager has created it. Set by the target AsmPrinter.
void SetModuleInfo(MachineModuleInfo *mmi) {
// Make sure initial declarations are made.
- if (!MMI && TAI->getSupportsExceptionHandling()) {
+ if (!MMI && ExceptionHandling && TAI->getSupportsExceptionHandling()) {
MMI = mmi;
shouldEmit = true;
}