mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Implement forward/external declarations for methods. Also, emit an error if a method
is defined more than once, instead of crashing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -59,7 +59,7 @@ uint64_t atoull(const char *Buffer) {
|
||||
/* Comments start with a ; and go till end of line */
|
||||
Comment ;.*
|
||||
|
||||
/* Variable(Def) identifiers start with a % sign */
|
||||
/* Variable(Value) identifiers start with a % sign */
|
||||
VarID %[a-zA-Z$._][a-zA-Z$._0-9]*
|
||||
|
||||
/* Label identifiers end with a colon */
|
||||
@@ -95,9 +95,6 @@ false { return FALSE; }
|
||||
declare { return DECLARE; }
|
||||
implementation { return IMPLEMENTATION; }
|
||||
|
||||
- { cerr << "deprecated argument '-' used!\n"; return '-'; }
|
||||
bb { cerr << "deprecated type 'bb' used!\n"; llvmAsmlval.TypeVal = Type::LabelTy; return LABEL;}
|
||||
|
||||
void { llvmAsmlval.TypeVal = Type::VoidTy ; return VOID; }
|
||||
bool { llvmAsmlval.TypeVal = Type::BoolTy ; return BOOL; }
|
||||
sbyte { llvmAsmlval.TypeVal = Type::SByteTy ; return SBYTE; }
|
||||
|
Reference in New Issue
Block a user