Fix small bug in setDebugInfoAvailability.
authorWesley Peck <peckw@wesleypeck.com>
Wed, 5 Jan 2011 17:01:57 +0000 (17:01 +0000)
committerWesley Peck <peckw@wesleypeck.com>
Wed, 5 Jan 2011 17:01:57 +0000 (17:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122886 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineModuleInfo.h

index 9ea27b4b02719d2871b59099b8d915a2a13d0ddd..6bc80b099fd9ea66edb3cd2dadde3506bbdb70b0 100644 (file)
@@ -209,7 +209,7 @@ public:
   /// hasDebugInfo - Returns true if valid debug info is present.
   ///
   bool hasDebugInfo() const { return DbgInfoAvailable; }
-  void setDebugInfoAvailability(bool avail) { DbgInfoAvailable = true; }
+  void setDebugInfoAvailability(bool avail) { DbgInfoAvailable = avail; }
 
   bool callsEHReturn() const { return CallsEHReturn; }
   void setCallsEHReturn(bool b) { CallsEHReturn = b; }