From c9cddb083746c5a52f87f52f17d2555e0ead9422 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 16 Jan 2015 17:31:29 +0000 Subject: [PATCH] IR: Cleanup dead code, NFC Line/column fixups already exist in `MDLocation`. Delete the duplicated logic in `DebugLoc`. llvm-svn: 226290 --- llvm/lib/IR/DebugLoc.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp index 075f295..e1bf795 100644 --- a/llvm/lib/IR/DebugLoc.cpp +++ b/llvm/lib/IR/DebugLoc.cpp @@ -53,11 +53,6 @@ DebugLoc DebugLoc::get(unsigned Line, unsigned Col, if (!Scope) return DebugLoc(); - // Saturate line and col to "unknown". - // FIXME: Allow 16-bits for columns. - if (Col > 255) Col = 0; - if (Line >= (1 << 24)) Line = 0; - return getFromDILocation( MDLocation::get(Scope->getContext(), Line, Col, Scope, InlinedAt)); } -- 2.7.4