[llvm] r226290 - IR: Cleanup dead code, NFC

Duncan P. N. Exon Smith dexonsmith at apple.com
Fri Jan 16 09:31:29 PST 2015


Author: dexonsmith
Date: Fri Jan 16 11:31:29 2015
New Revision: 226290

URL: http://llvm.org/viewvc/llvm-project?rev=226290&view=rev
Log:
IR: Cleanup dead code, NFC

Line/column fixups already exist in `MDLocation`.  Delete the duplicated
logic in `DebugLoc`.

Modified:
    llvm/trunk/lib/IR/DebugLoc.cpp

Modified: llvm/trunk/lib/IR/DebugLoc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugLoc.cpp?rev=226290&r1=226289&r2=226290&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugLoc.cpp (original)
+++ llvm/trunk/lib/IR/DebugLoc.cpp Fri Jan 16 11:31:29 2015
@@ -53,11 +53,6 @@ DebugLoc DebugLoc::get(unsigned Line, un
   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));
 }





More information about the llvm-commits mailing list