Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 1 | //===-- DwarfEHPrepare - Prepare exception handling for code generation ---===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This pass mulches exception handling code into a form adapted to code |
Bill Wendling | d1aa77c | 2010-03-26 23:41:30 +0000 | [diff] [blame] | 11 | // generation. Required if using dwarf exception handling. |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 15 | #include "llvm/CodeGen/Passes.h" |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 16 | #include "llvm/ADT/BitVector.h" |
Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 17 | #include "llvm/ADT/Statistic.h" |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 18 | #include "llvm/Analysis/CFG.h" |
David Majnemer | 70497c6 | 2015-12-02 23:06:39 +0000 | [diff] [blame] | 19 | #include "llvm/Analysis/EHPersonalities.h" |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 20 | #include "llvm/Analysis/TargetTransformInfo.h" |
| 21 | #include "llvm/IR/Dominators.h" |
Chandler Carruth | 9fb823b | 2013-01-02 11:36:10 +0000 | [diff] [blame] | 22 | #include "llvm/IR/Function.h" |
| 23 | #include "llvm/IR/Instructions.h" |
Chandler Carruth | 9fb823b | 2013-01-02 11:36:10 +0000 | [diff] [blame] | 24 | #include "llvm/IR/Module.h" |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 25 | #include "llvm/Pass.h" |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 26 | #include "llvm/Target/TargetLowering.h" |
Eric Christopher | d913448 | 2014-08-04 21:25:23 +0000 | [diff] [blame] | 27 | #include "llvm/Target/TargetSubtargetInfo.h" |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 28 | #include "llvm/Transforms/Utils/Local.h" |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 29 | using namespace llvm; |
| 30 | |
Chandler Carruth | 1b9dde0 | 2014-04-22 02:02:50 +0000 | [diff] [blame] | 31 | #define DEBUG_TYPE "dwarfehprepare" |
| 32 | |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 33 | STATISTIC(NumResumesLowered, "Number of resume calls lowered"); |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 34 | |
| 35 | namespace { |
Nick Lewycky | 02d5f77 | 2009-10-25 06:33:48 +0000 | [diff] [blame] | 36 | class DwarfEHPrepare : public FunctionPass { |
Bill Wendling | afc1036 | 2013-06-19 20:51:24 +0000 | [diff] [blame] | 37 | const TargetMachine *TM; |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 38 | |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 39 | // RewindFunction - _Unwind_Resume or the target equivalent. |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 40 | Constant *RewindFunction; |
| 41 | |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 42 | DominatorTree *DT; |
| 43 | const TargetLowering *TLI; |
| 44 | |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 45 | bool InsertUnwindResumeCalls(Function &Fn); |
Bill Wendling | 27489fe | 2012-05-17 17:59:51 +0000 | [diff] [blame] | 46 | Value *GetExceptionObject(ResumeInst *RI); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 47 | size_t |
| 48 | pruneUnreachableResumes(Function &Fn, |
| 49 | SmallVectorImpl<ResumeInst *> &Resumes, |
| 50 | SmallVectorImpl<LandingPadInst *> &CleanupLPads); |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 51 | |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 52 | public: |
| 53 | static char ID; // Pass identification, replacement for typeid. |
Reid Kleckner | 7bb0738 | 2015-02-18 23:17:41 +0000 | [diff] [blame] | 54 | |
| 55 | // INITIALIZE_TM_PASS requires a default constructor, but it isn't used in |
| 56 | // practice. |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 57 | DwarfEHPrepare() |
| 58 | : FunctionPass(ID), TM(nullptr), RewindFunction(nullptr), DT(nullptr), |
| 59 | TLI(nullptr) {} |
Reid Kleckner | 7bb0738 | 2015-02-18 23:17:41 +0000 | [diff] [blame] | 60 | |
Chandler Carruth | 7352302 | 2014-01-13 13:07:17 +0000 | [diff] [blame] | 61 | DwarfEHPrepare(const TargetMachine *TM) |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 62 | : FunctionPass(ID), TM(TM), RewindFunction(nullptr), DT(nullptr), |
| 63 | TLI(nullptr) {} |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 64 | |
Craig Topper | 4584cd5 | 2014-03-07 09:26:03 +0000 | [diff] [blame] | 65 | bool runOnFunction(Function &Fn) override; |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 66 | |
Yaron Keren | 66b0ceb | 2014-09-14 20:36:28 +0000 | [diff] [blame] | 67 | bool doFinalization(Module &M) override { |
| 68 | RewindFunction = nullptr; |
| 69 | return false; |
| 70 | } |
| 71 | |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 72 | void getAnalysisUsage(AnalysisUsage &AU) const override; |
| 73 | |
Craig Topper | 4584cd5 | 2014-03-07 09:26:03 +0000 | [diff] [blame] | 74 | const char *getPassName() const override { |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 75 | return "Exception handling preparation"; |
| 76 | } |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 77 | }; |
| 78 | } // end anonymous namespace |
| 79 | |
| 80 | char DwarfEHPrepare::ID = 0; |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 81 | INITIALIZE_TM_PASS_BEGIN(DwarfEHPrepare, "dwarfehprepare", |
| 82 | "Prepare DWARF exceptions", false, false) |
| 83 | INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass) |
| 84 | INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass) |
| 85 | INITIALIZE_TM_PASS_END(DwarfEHPrepare, "dwarfehprepare", |
| 86 | "Prepare DWARF exceptions", false, false) |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 87 | |
Bill Wendling | afc1036 | 2013-06-19 20:51:24 +0000 | [diff] [blame] | 88 | FunctionPass *llvm::createDwarfEHPass(const TargetMachine *TM) { |
| 89 | return new DwarfEHPrepare(TM); |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 90 | } |
| 91 | |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 92 | void DwarfEHPrepare::getAnalysisUsage(AnalysisUsage &AU) const { |
| 93 | AU.addRequired<TargetTransformInfoWrapperPass>(); |
| 94 | AU.addRequired<DominatorTreeWrapperPass>(); |
| 95 | } |
| 96 | |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 97 | /// GetExceptionObject - Return the exception object from the value passed into |
| 98 | /// the 'resume' instruction (typically an aggregate). Clean up any dead |
| 99 | /// instructions, including the 'resume' instruction. |
Bill Wendling | 27489fe | 2012-05-17 17:59:51 +0000 | [diff] [blame] | 100 | Value *DwarfEHPrepare::GetExceptionObject(ResumeInst *RI) { |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 101 | Value *V = RI->getOperand(0); |
Craig Topper | c0196b1 | 2014-04-14 00:51:57 +0000 | [diff] [blame] | 102 | Value *ExnObj = nullptr; |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 103 | InsertValueInst *SelIVI = dyn_cast<InsertValueInst>(V); |
Craig Topper | c0196b1 | 2014-04-14 00:51:57 +0000 | [diff] [blame] | 104 | LoadInst *SelLoad = nullptr; |
| 105 | InsertValueInst *ExcIVI = nullptr; |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 106 | bool EraseIVIs = false; |
| 107 | |
| 108 | if (SelIVI) { |
| 109 | if (SelIVI->getNumIndices() == 1 && *SelIVI->idx_begin() == 1) { |
| 110 | ExcIVI = dyn_cast<InsertValueInst>(SelIVI->getOperand(0)); |
| 111 | if (ExcIVI && isa<UndefValue>(ExcIVI->getOperand(0)) && |
| 112 | ExcIVI->getNumIndices() == 1 && *ExcIVI->idx_begin() == 0) { |
Bill Wendling | 27489fe | 2012-05-17 17:59:51 +0000 | [diff] [blame] | 113 | ExnObj = ExcIVI->getOperand(1); |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 114 | SelLoad = dyn_cast<LoadInst>(SelIVI->getOperand(1)); |
| 115 | EraseIVIs = true; |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | if (!ExnObj) |
| 121 | ExnObj = ExtractValueInst::Create(RI->getOperand(0), 0, "exn.obj", RI); |
| 122 | |
| 123 | RI->eraseFromParent(); |
| 124 | |
| 125 | if (EraseIVIs) { |
Benjamin Kramer | eb63e4d | 2015-01-29 13:26:50 +0000 | [diff] [blame] | 126 | if (SelIVI->use_empty()) |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 127 | SelIVI->eraseFromParent(); |
Benjamin Kramer | eb63e4d | 2015-01-29 13:26:50 +0000 | [diff] [blame] | 128 | if (ExcIVI->use_empty()) |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 129 | ExcIVI->eraseFromParent(); |
Benjamin Kramer | eb63e4d | 2015-01-29 13:26:50 +0000 | [diff] [blame] | 130 | if (SelLoad && SelLoad->use_empty()) |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 131 | SelLoad->eraseFromParent(); |
| 132 | } |
| 133 | |
| 134 | return ExnObj; |
| 135 | } |
| 136 | |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 137 | /// Replace resumes that are not reachable from a cleanup landing pad with |
| 138 | /// unreachable and then simplify those blocks. |
| 139 | size_t DwarfEHPrepare::pruneUnreachableResumes( |
| 140 | Function &Fn, SmallVectorImpl<ResumeInst *> &Resumes, |
| 141 | SmallVectorImpl<LandingPadInst *> &CleanupLPads) { |
| 142 | BitVector ResumeReachable(Resumes.size()); |
| 143 | size_t ResumeIndex = 0; |
| 144 | for (auto *RI : Resumes) { |
| 145 | for (auto *LP : CleanupLPads) { |
| 146 | if (isPotentiallyReachable(LP, RI, DT)) { |
| 147 | ResumeReachable.set(ResumeIndex); |
| 148 | break; |
| 149 | } |
| 150 | } |
| 151 | ++ResumeIndex; |
| 152 | } |
| 153 | |
| 154 | // If everything is reachable, there is no change. |
| 155 | if (ResumeReachable.all()) |
| 156 | return Resumes.size(); |
| 157 | |
| 158 | const TargetTransformInfo &TTI = |
| 159 | getAnalysis<TargetTransformInfoWrapperPass>().getTTI(Fn); |
| 160 | LLVMContext &Ctx = Fn.getContext(); |
| 161 | |
| 162 | // Otherwise, insert unreachable instructions and call simplifycfg. |
| 163 | size_t ResumesLeft = 0; |
| 164 | for (size_t I = 0, E = Resumes.size(); I < E; ++I) { |
| 165 | ResumeInst *RI = Resumes[I]; |
| 166 | if (ResumeReachable[I]) { |
| 167 | Resumes[ResumesLeft++] = RI; |
| 168 | } else { |
| 169 | BasicBlock *BB = RI->getParent(); |
| 170 | new UnreachableInst(Ctx, RI); |
| 171 | RI->eraseFromParent(); |
Mehdi Amini | a28d91d | 2015-03-10 02:37:25 +0000 | [diff] [blame] | 172 | SimplifyCFG(BB, TTI, 1); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 173 | } |
| 174 | } |
| 175 | Resumes.resize(ResumesLeft); |
| 176 | return ResumesLeft; |
| 177 | } |
| 178 | |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 179 | /// InsertUnwindResumeCalls - Convert the ResumeInsts that are still present |
| 180 | /// into calls to the appropriate _Unwind_Resume function. |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 181 | bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) { |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 182 | SmallVector<ResumeInst*, 16> Resumes; |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 183 | SmallVector<LandingPadInst*, 16> CleanupLPads; |
Benjamin Kramer | eb63e4d | 2015-01-29 13:26:50 +0000 | [diff] [blame] | 184 | for (BasicBlock &BB : Fn) { |
| 185 | if (auto *RI = dyn_cast<ResumeInst>(BB.getTerminator())) |
Bill Wendling | 8ac2041 | 2011-08-25 23:48:11 +0000 | [diff] [blame] | 186 | Resumes.push_back(RI); |
David Majnemer | 7fddecc | 2015-06-17 20:52:32 +0000 | [diff] [blame] | 187 | if (auto *LP = BB.getLandingPadInst()) |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 188 | if (LP->isCleanup()) |
| 189 | CleanupLPads.push_back(LP); |
Bill Wendling | 8ac2041 | 2011-08-25 23:48:11 +0000 | [diff] [blame] | 190 | } |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 191 | |
| 192 | if (Resumes.empty()) |
Kai Nacke | e1823b6 | 2013-05-31 16:30:36 +0000 | [diff] [blame] | 193 | return false; |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 194 | |
Joseph Tremoulet | 2afea54 | 2015-10-06 20:28:16 +0000 | [diff] [blame] | 195 | // Check the personality, don't do anything if it's funclet-based. |
David Majnemer | 7fddecc | 2015-06-17 20:52:32 +0000 | [diff] [blame] | 196 | EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn()); |
Joseph Tremoulet | 2afea54 | 2015-10-06 20:28:16 +0000 | [diff] [blame] | 197 | if (isFuncletEHPersonality(Pers)) |
David Majnemer | 7fddecc | 2015-06-17 20:52:32 +0000 | [diff] [blame] | 198 | return false; |
| 199 | |
Chandler Carruth | 301ed0c | 2015-02-20 02:15:36 +0000 | [diff] [blame] | 200 | LLVMContext &Ctx = Fn.getContext(); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 201 | |
| 202 | size_t ResumesLeft = pruneUnreachableResumes(Fn, Resumes, CleanupLPads); |
| 203 | if (ResumesLeft == 0) |
| 204 | return true; // We pruned them all. |
| 205 | |
| 206 | // Find the rewind function if we didn't already. |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 207 | if (!RewindFunction) { |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 208 | FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), |
| 209 | Type::getInt8PtrTy(Ctx), false); |
| 210 | const char *RewindName = TLI->getLibcallName(RTLIB::UNWIND_RESUME); |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 211 | RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy); |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | // Create the basic block where the _Unwind_Resume call will live. |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 215 | if (ResumesLeft == 1) { |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 216 | // Instead of creating a new BB and PHI node, just append the call to |
| 217 | // _Unwind_Resume to the end of the single resume block. |
| 218 | ResumeInst *RI = Resumes.front(); |
| 219 | BasicBlock *UnwindBB = RI->getParent(); |
Bill Wendling | 27489fe | 2012-05-17 17:59:51 +0000 | [diff] [blame] | 220 | Value *ExnObj = GetExceptionObject(RI); |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 221 | |
| 222 | // Call the _Unwind_Resume function. |
| 223 | CallInst *CI = CallInst::Create(RewindFunction, ExnObj, "", UnwindBB); |
| 224 | CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME)); |
| 225 | |
| 226 | // We never expect _Unwind_Resume to return. |
| 227 | new UnreachableInst(Ctx, UnwindBB); |
| 228 | return true; |
| 229 | } |
| 230 | |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 231 | BasicBlock *UnwindBB = BasicBlock::Create(Ctx, "unwind_resume", &Fn); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 232 | PHINode *PN = PHINode::Create(Type::getInt8PtrTy(Ctx), ResumesLeft, |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 233 | "exn.obj", UnwindBB); |
| 234 | |
| 235 | // Extract the exception object from the ResumeInst and add it to the PHI node |
| 236 | // that feeds the _Unwind_Resume call. |
Benjamin Kramer | eb63e4d | 2015-01-29 13:26:50 +0000 | [diff] [blame] | 237 | for (ResumeInst *RI : Resumes) { |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 238 | BasicBlock *Parent = RI->getParent(); |
| 239 | BranchInst::Create(UnwindBB, Parent); |
Bill Wendling | 9249261 | 2012-01-20 00:53:28 +0000 | [diff] [blame] | 240 | |
Bill Wendling | 27489fe | 2012-05-17 17:59:51 +0000 | [diff] [blame] | 241 | Value *ExnObj = GetExceptionObject(RI); |
Bill Wendling | 8c09040 | 2012-01-28 01:17:56 +0000 | [diff] [blame] | 242 | PN->addIncoming(ExnObj, Parent); |
Bill Wendling | 9249261 | 2012-01-20 00:53:28 +0000 | [diff] [blame] | 243 | |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 244 | ++NumResumesLowered; |
Bill Wendling | 1cdd7fd | 2011-08-17 19:48:49 +0000 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | // Call the function. |
| 248 | CallInst *CI = CallInst::Create(RewindFunction, PN, "", UnwindBB); |
| 249 | CI->setCallingConv(TLI->getLibcallCallingConv(RTLIB::UNWIND_RESUME)); |
| 250 | |
| 251 | // We never expect _Unwind_Resume to return. |
| 252 | new UnreachableInst(Ctx, UnwindBB); |
| 253 | return true; |
| 254 | } |
| 255 | |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 256 | bool DwarfEHPrepare::runOnFunction(Function &Fn) { |
Reid Kleckner | 7bb0738 | 2015-02-18 23:17:41 +0000 | [diff] [blame] | 257 | assert(TM && "DWARF EH preparation requires a target machine"); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 258 | DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree(); |
| 259 | TLI = TM->getSubtargetImpl(Fn)->getTargetLowering(); |
Bill Wendling | 478f58c | 2011-11-07 23:36:48 +0000 | [diff] [blame] | 260 | bool Changed = InsertUnwindResumeCalls(Fn); |
Reid Kleckner | be0a050 | 2015-03-09 22:45:16 +0000 | [diff] [blame] | 261 | DT = nullptr; |
| 262 | TLI = nullptr; |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 263 | return Changed; |
| 264 | } |