Skip to content

Commit 0abf013

Browse files
[gardening] Remove unused method
1 parent 243b91a commit 0abf013

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -329,19 +329,6 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
329329
}
330330
return true;
331331
}
332-
333-
bool lineNumberIsSane(IRBuilder &Builder, unsigned Line) {
334-
if (IGM.IRGen.Opts.Optimize)
335-
return true;
336-
337-
// Assert monotonically increasing line numbers within the same basic block;
338-
llvm::BasicBlock *CurBasicBlock = Builder.GetInsertBlock();
339-
if (CurBasicBlock == LastBasicBlock) {
340-
return Line >= LastDebugLoc.Line;
341-
}
342-
LastBasicBlock = CurBasicBlock;
343-
return true;
344-
}
345332
#endif
346333

347334
llvm::DIFile *getOrCreateFile(StringRef Filename) {

0 commit comments

Comments
 (0)