summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugLoc.cpp
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
commitc9cddb083746c5a52f87f52f17d2555e0ead9422 (patch)
tree4d3d4583661d578f9de4e1f384faa1f2179031d3 /llvm/lib/IR/DebugLoc.cpp
parent2e3a26de0ce02ee85fa3b7a26d2d1a7afc5a3a36 (diff)
downloadbcm5719-llvm-c9cddb083746c5a52f87f52f17d2555e0ead9422.tar.gz
bcm5719-llvm-c9cddb083746c5a52f87f52f17d2555e0ead9422.zip
IR: Cleanup dead code, NFC
Line/column fixups already exist in `MDLocation`. Delete the duplicated logic in `DebugLoc`. llvm-svn: 226290
Diffstat (limited to 'llvm/lib/IR/DebugLoc.cpp')
-rw-r--r--llvm/lib/IR/DebugLoc.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index 075f295cfdc..e1bf7951a58 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));
}
OpenPOWER on IntegriCloud