[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp

Jim Laskey jlaskey at apple.com
Mon Jan 29 12:48:51 PST 2007



Changes in directory llvm/lib/CodeGen:

DwarfWriter.cpp updated: 1.119 -> 1.120
---
Log message:

Flag to control exception handling.

---
Diffs of the changes:  (+3 -2)

 DwarfWriter.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.119 llvm/lib/CodeGen/DwarfWriter.cpp:1.120
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.119	Mon Jan 29 14:01:41 2007
+++ llvm/lib/CodeGen/DwarfWriter.cpp	Mon Jan 29 14:48:32 2007
@@ -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 @@
   /// 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;
     }






More information about the llvm-commits mailing list