diff options
author | Araq <rumpf_a@web.de> | 2012-07-08 21:03:47 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-08 21:03:47 +0200 |
commit | 4fbba0a65ad310ba9498f1cf9f79eb0826b19f81 (patch) | |
tree | dece3596fbdf153263f5672b4011139f70a4df6a /compiler/semdata.nim | |
parent | 36247e0947699a56d5bc51d48188b6dda1815587 (diff) | |
download | Nim-4fbba0a65ad310ba9498f1cf9f79eb0826b19f81.tar.gz |
changed integer promotion rules; breaks bootstrapping and lots of code
Diffstat (limited to 'compiler/semdata.nim')
-rwxr-xr-x | compiler/semdata.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index c28c8c7a1..9eff8c4f4 100755 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -213,6 +213,11 @@ proc markUsed*(n: PNode, s: PSym) = if sfDeprecated in s.flags: Message(n.info, warnDeprecated, s.name.s) if sfError in s.flags: LocalError(n.info, errWrongSymbolX, s.name.s) +proc markIndirect*(c: PContext, s: PSym) = + if s.kind in {skProc, skConverter, skMethod, skIterator}: + incl(s.flags, sfAddrTaken) + # XXX add to 'c' for global analysis + proc useSym*(sym: PSym): PNode = result = newSymNode(sym) markUsed(result, sym) |