annotate misc/Error.d @ 24:2d28b21faad6
new_gen
New codegen!
Rewritten codegen to use the llvm bindings
Everything except struct are back to normal, and there a a few additions.
1. Correct code in more cases, return at the end of a while/if wont
generate a "ret" followed by a "br".
2. Better scope, "int x = x" now illegal
3. Probably more
author |
Anders Halager <halager@gmail.com> |
date |
Sat, 19 Apr 2008 18:29:42 +0200 |
parents |
606a57c90a0b |
children |
41d23f2762c3 |
rev |
line source |
1
|
1 module misc.Error;
|
|
2
|
|
3 import misc.Location;
|
|
4
|
6
|
5 import tango.core.Exception;
|
|
6
|
|
7 class Error : Exception
|
1
|
8 {
|
6
|
9 char[] message;
|
1
|
10 Location errorLocation;
|
6
|
11
|
|
12 this(char[] message, Location errorLocation)
|
|
13 {
|
24
|
14 super(errorLocation.toString ~ " " ~ message);
|
6
|
15 this.message = message;
|
|
16 this.errorLocation = errorLocation;
|
|
17 }
|
1
|
18 }
|