Skip to content

Commit 21a33ac

Browse files
committed
---
yaml --- r: 2889 b: refs/heads/master c: dba9cae h: refs/heads/master i: 2887: 4ce3f66 v: v3
1 parent 53f9a81 commit 21a33ac

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1b67fbdfd30ef55510ef57e68f106a72cd19b7be
2+
refs/heads/master: dba9caeba9579a17c9cbb9665b9ea160c12004ac

trunk/src/comp/middle/trans.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
// the result of the translation to LLVM -- while others, such as trans_fn,
55
// trans_obj, and trans_item, are called only for the side effect of adding a
66
// particular definition to the LLVM IR output we're producing.
7+
//
8+
// Hopefully useful general knowledge about trans:
9+
//
10+
// * There's no way to find out the ty::t type of a ValueRef. Doing so
11+
// would be "trying to get the eggs out of an omelette" (credit:
12+
// pcwalton). You can, instead, find out its TypeRef by calling val_ty,
13+
// but many TypeRefs correspond to one ty::t; for instance, tup(int, int,
14+
// int) and rec(x=int, y=int, z=int) will have the same TypeRef.
715

816
import std::int;
917
import std::str;

0 commit comments

Comments
 (0)