output builds now :-)

This commit is contained in:
mterwoord_cp 2007-09-28 14:27:53 +00:00
parent 3f0e954f89
commit a331bc1b1b
2 changed files with 4 additions and 4 deletions

View file

@ -40,14 +40,14 @@ namespace Indy.IL2CPU.IL.X86 {
if (String.IsNullOrEmpty(xMethodName)) { if (String.IsNullOrEmpty(xMethodName)) {
xMethodName = TheMethod.Name; xMethodName = TheMethod.Name;
} }
if (TheMethod.PInvokeInfo.IsCharSetNotSpec) { //if (TheMethod.PInvokeInfo.IsCharSetNotSpec) {
foreach (ParameterDefinition xParam in TheMethod.Parameters) { foreach (ParameterDefinition xParam in TheMethod.Parameters) {
if (xParam.ParameterType.FullName=="System.String") { if (xParam.ParameterType.FullName=="System.String") {
xMethodName += "A"; xMethodName += "A";
break; break;
} }
} }
} //}
if (String.IsNullOrEmpty(xDllName)) { if (String.IsNullOrEmpty(xDllName)) {
throw new Exception("Unable to determine what dll to use!"); throw new Exception("Unable to determine what dll to use!");
} }

View file

@ -171,12 +171,12 @@ namespace Indy.IL2CPU {
TypeDefinition xType = mTypes[i]; TypeDefinition xType = mTypes[i];
List<MethodDefinition> xEmittedMethods = new List<MethodDefinition>(); List<MethodDefinition> xEmittedMethods = new List<MethodDefinition>();
foreach (MethodDefinition xMethod in xType.Methods) { foreach (MethodDefinition xMethod in xType.Methods) {
if (mMethods.ContainsKey(xMethod) && mMethods[xMethod]) { if (mMethods.ContainsKey(xMethod) && mMethods[xMethod] && !xMethod.IsAbstract) {
xEmittedMethods.Add(xMethod); xEmittedMethods.Add(xMethod);
} }
} }
foreach (MethodDefinition xCtor in xType.Constructors) { foreach (MethodDefinition xCtor in xType.Constructors) {
if (mMethods.ContainsKey(xCtor) && mMethods[xCtor]) { if (mMethods.ContainsKey(xCtor) && mMethods[xCtor] && !xCtor.IsAbstract) {
xEmittedMethods.Add(xCtor); xEmittedMethods.Add(xCtor);
} }
} }