]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
IR: Cleanup dead code, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 16 Jan 2015 17:31:29 +0000 (17:31 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 16 Jan 2015 17:31:29 +0000 (17:31 +0000)
Line/column fixups already exist in `MDLocation`.  Delete the duplicated
logic in `DebugLoc`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226290 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DebugLoc.cpp

index 075f295cfdce5a5abf9fa10ed4042b2e2eb261b8..e1bf7951a5882142f8bf062e92a59e4769a0044f 100644 (file)
@@ -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));
 }