OSDN Git Service

Use getReturnTypeName() to print return type.
authorDevang Patel <dpatel@apple.com>
Tue, 23 Jun 2009 22:23:13 +0000 (22:23 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 23 Jun 2009 22:23:13 +0000 (22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DbgInfoPrinter.cpp

index d80d581..6c549e6 100644 (file)
@@ -93,7 +93,7 @@ void PrintDbgInfo::printFuncStart(const DbgFuncStartInst *FS) {
   DISubprogram Subprogram(cast<GlobalVariable>(FS->getSubprogram()));
   std::string Res1, Res2;
   Out << "; fully qualified function name: " << Subprogram.getDisplayName(Res1)
-      << " return type: " << Subprogram.getType().getName(Res2)
+      << " return type: " << Subprogram.getReturnTypeName(Res2)
       << " at line " << Subprogram.getLineNumber()
       << "\n\n";
 }