mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Fix some illegal uses of the ## operator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53b44e1c32
commit
316a65bda9
@ -151,11 +151,10 @@ GenericValue lle_X_printString(MethodType *M, const vector<GenericValue> &ArgVal
|
||||
|
||||
// Implement 'void print<TYPE>(X)' for each primitive type or pointer type
|
||||
#define PRINT_TYPE_FUNC(TYPENAME,TYPEID) \
|
||||
GenericValue lle_X_print##TYPENAME##(MethodType *M,\
|
||||
const vector<GenericValue> &ArgVal) {\
|
||||
GenericValue lle_X_print##TYPENAME(MethodType *M,\
|
||||
const vector<GenericValue> &ArgVal) {\
|
||||
assert(ArgVal.size() == 1 && "generic print only takes one argument!");\
|
||||
assert(M->getParamTypes()[0].get()->getPrimitiveID()\
|
||||
== Type::##TYPEID##);\
|
||||
assert(M->getParamTypes()[0].get()->getPrimitiveID() == Type::##TYPEID);\
|
||||
Interpreter::printValue(M->getParamTypes()[0], ArgVal[0]);\
|
||||
return GenericValue();\
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user