summary refs log tree commit diff stats
path: root/compiler/nir
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-04-09 20:39:14 +0800
committerGitHub <noreply@github.com>2024-04-09 14:39:14 +0200
commit72d0ba2df534109064badde1a1b26ae53f22d44d (patch)
tree96f0e5dd2abae9b517b15309ba48d27cf08fce7b /compiler/nir
parent73b0b0d31c156392c64b8b088402695c7e27f0f0 (diff)
downloadNim-72d0ba2df534109064badde1a1b26ae53f22d44d.tar.gz
remove unused magics: mIntToStr, mInt64ToStr, mFloatToStr (#23486)
mIntToStr, mInt64ToStr, mFloatToStr,
Diffstat (limited to 'compiler/nir')
-rw-r--r--compiler/nir/ast2ir.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/nir/ast2ir.nim b/compiler/nir/ast2ir.nim
index 20dfbf2a7..c8954548f 100644
--- a/compiler/nir/ast2ir.nim
+++ b/compiler/nir/ast2ir.nim
@@ -1819,15 +1819,8 @@ proc genMagic(c: var ProcCon; n: PNode; d: var Value; m: TMagic) =
       if t.kind in {tyUInt8..tyUInt32} or (t.kind == tyUInt and size < 8):
         c.gABC(n, opcNarrowU, d, TRegister(size*8))
   of mStrToStr, mEnsureMove: c.gen n[1], d
-  of mIntToStr: genUnaryCp(c, n, d, "nimIntToStr")
-  of mInt64ToStr: genUnaryCp(c, n, d, "nimInt64ToStr")
   of mBoolToStr: genUnaryCp(c, n, d, "nimBoolToStr")
   of mCharToStr: genUnaryCp(c, n, d, "nimCharToStr")
-  of mFloatToStr:
-    if n[1].typ.skipTypes(abstractInst).kind == tyFloat32:
-      genUnaryCp(c, n, d, "nimFloat32ToStr")
-    else:
-      genUnaryCp(c, n, d, "nimFloatToStr")
   of mCStrToStr: genUnaryCp(c, n, d, "cstrToNimstr")
   of mEnumToStr: genEnumToStr(c, n, d)