summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-16 17:31:29 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-16 17:31:29 +0000
commit44fb4b337fa3b661d3d791df6f72ac01b567cfc0 (patch)
tree75c68eb2f3310635c0c902853e75f943653e0e7d /lib/IR
parent9fd1ca6c40a5c0fc11620110421d2e84e7f72989 (diff)
IR: Cleanup dead code, NFC
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
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/DebugLoc.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp
index 075f295cfdc..e1bf7951a58 100644
--- a/lib/IR/DebugLoc.cpp
+++ b/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));
}