mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
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
This commit is contained in:
@@ -53,11 +53,6 @@ DebugLoc DebugLoc::get(unsigned Line, unsigned Col,
|
|||||||
if (!Scope)
|
if (!Scope)
|
||||||
return DebugLoc();
|
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(
|
return getFromDILocation(
|
||||||
MDLocation::get(Scope->getContext(), Line, Col, Scope, InlinedAt));
|
MDLocation::get(Scope->getContext(), Line, Col, Scope, InlinedAt));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user