Skip to content

Commit 691e2b1

Browse files
committed
fixup
1 parent ec0fc8f commit 691e2b1

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

compiler/ccgmerge.nim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const
2626
cfsTypes: "NIM_merge_TYPES",
2727
cfsSeqTypes: "NIM_merge_SEQ_TYPES",
2828
cfsFieldInfo: "NIM_merge_FIELD_INFO",
29-
cfsEmits: "NIM_merge_EMITS",
3029
cfsTypeInfo: "NIM_merge_TYPE_INFO",
3130
cfsProcHeaders: "NIM_merge_PROC_HEADERS",
3231
cfsData: "NIM_merge_DATA",

compiler/ccgstmts.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,12 +1455,12 @@ proc genAsmStmt(p: BProc, t: PNode) =
14551455
# work:
14561456
if p.prc == nil:
14571457
# top level asm statement?
1458-
p.module.s[cfsEmits].add runtimeFormat(CC[p.config.cCompiler].asmStmtFrmt, [s])
1458+
p.module.s[cfsProcHeaders].add runtimeFormat(CC[p.config.cCompiler].asmStmtFrmt, [s])
14591459
else:
14601460
p.s(cpsStmts).add indentLine(p, runtimeFormat(CC[p.config.cCompiler].asmStmtFrmt, [s]))
14611461

14621462
proc determineSection(n: PNode): TCFileSection =
1463-
result = cfsEmits # WAS: cfsProcHeaders
1463+
result = cfsProcHeaders
14641464
if n.len >= 1 and n[0].kind in {nkStrLit..nkTripleStrLit}:
14651465
let sec = n[0].strVal
14661466
if sec.startsWith("/*TYPESECTION*/"): result = cfsTypes

compiler/cgendata.nim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ type
2525
# this is needed for strange type generation
2626
# reasons
2727
cfsFieldInfo, # section for field information
28-
cfsEmits, # section for {.emit.} (default location)
2928
cfsTypeInfo, # section for type information (ag ABI checks)
3029
cfsProcHeaders, # section for C procs prototypes
3130
cfsData, # section for C constant data

tests/misc/msizeof5.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## tests for -d:checkAbi used by addAbiCheck via NIM_STATIC_ASSERT
22

3-
{.emit:"""
3+
{.emit:"""/*TYPESECTION*/
44
struct Foo1{
55
int a;
66
};

tests/trunner.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ else: # don't run twice the same test
4747
block: # ABI checks
4848
let file = "misc/msizeof5.nim"
4949
block:
50-
let (_, exitCode) = runCmd(file, "-d:checkAbi")
51-
doAssert exitCode == 0
50+
let (output, exitCode) = runCmd(file, "-d:checkAbi")
51+
doAssert exitCode == 0, output
5252
block:
5353
let (output, exitCode) = runCmd(file, "-d:checkAbi -d:caseBad")
5454
# on platforms that support _StaticAssert natively, errors will show full context, eg:

0 commit comments

Comments
 (0)