summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-23 01:52:13 +0000
committerMike Stump <mrs@apple.com>2009-10-23 01:52:13 +0000
commitae2559a221013e276b01712d0bf47b986fa64690 (patch)
treefb11ae5367b3a43c23341764337ff9aa38426cb1 /clang/lib/CodeGen/CGDebugInfo.cpp
parentdbe4424c375d2c7f9623e8f1c2a345ae16afb806 (diff)
downloadbcm5719-llvm-ae2559a221013e276b01712d0bf47b986fa64690.tar.gz
bcm5719-llvm-ae2559a221013e276b01712d0bf47b986fa64690.zip
Fixup the return type of functions.
llvm-svn: 84922
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index af8b10783a0..1b01e1537b4 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -888,7 +888,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty,
/// EmitFunctionStart - Constructs the debug code for entering a function -
/// "llvm.dbg.func.start.".
-void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
+void CGDebugInfo::EmitFunctionStart(const char *Name, QualType FnType,
llvm::Function *Fn,
CGBuilderTy &Builder) {
const char *LinkageName = Name;
@@ -906,7 +906,7 @@ void CGDebugInfo::EmitFunctionStart(const char *Name, QualType ReturnType,
llvm::DISubprogram SP =
DebugFactory.CreateSubprogram(Unit, Name, Name, LinkageName, Unit, LineNo,
- getOrCreateType(ReturnType, Unit),
+ getOrCreateType(FnType, Unit),
Fn->hasInternalLinkage(), true/*definition*/);
#ifndef ATTACH_DEBUG_INFO_TO_AN_INSN
OpenPOWER on IntegriCloud