diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
commit | 2aac6bf66a4f4486e14ee5bdc96277ec770afdc7 (patch) | |
tree | 7c0149ec42632ae549ecdb13e45c1ec780eb3063 /support | |
parent | 3d0dceb733fe8d5d916eab58d923eb7ff491d6c6 (diff) |
s/MethodType/FunctionType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r-- | support/lib/Support/NameMangling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/support/lib/Support/NameMangling.cpp b/support/lib/Support/NameMangling.cpp index 2fbcb887e3..7fbcfdedd2 100644 --- a/support/lib/Support/NameMangling.cpp +++ b/support/lib/Support/NameMangling.cpp @@ -25,10 +25,10 @@ string MangleTypeName(const Type *Ty) { mangledName += MangleTypeName(STy->getContainedType(i)); } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { mangledName = string("A_" +MangleTypeName(ATy->getElementType())); - } else if (MethodType *MTy = dyn_cast<MethodType>(Ty)) { - mangledName = string("M_") + MangleTypeName(MTy->getReturnType()); - for (unsigned i = 1; i < MTy->getNumContainedTypes(); ++i) - mangledName += string(MangleTypeName(MTy->getContainedType(i))); + } else if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { + mangledName = string("M_") + MangleTypeName(FTy->getReturnType()); + for (unsigned i = 1; i < FTy->getNumContainedTypes(); ++i) + mangledName += string(MangleTypeName(FTy->getContainedType(i))); } return mangledName; |