aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DbgInfoPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-15 17:24:56 +0000
committerDevang Patel <dpatel@apple.com>2011-02-15 17:24:56 +0000
commit497acb91dc9a433f8196c08c941082ad6e9fbe9d (patch)
tree3a205f33943606aee4e0c623175e204b9f811ddb /lib/Analysis/DbgInfoPrinter.cpp
parentab4c366274a582dd8146b2820c6b999cad5fce36 (diff)
downloadexternal_llvm-497acb91dc9a433f8196c08c941082ad6e9fbe9d.zip
external_llvm-497acb91dc9a433f8196c08c941082ad6e9fbe9d.tar.gz
external_llvm-497acb91dc9a433f8196c08c941082ad6e9fbe9d.tar.bz2
Print function info. Patch by Minjang Kim.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DbgInfoPrinter.cpp')
-rw-r--r--lib/Analysis/DbgInfoPrinter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp
index a460777..f13ad6e 100644
--- a/lib/Analysis/DbgInfoPrinter.cpp
+++ b/lib/Analysis/DbgInfoPrinter.cpp
@@ -66,8 +66,12 @@ void PrintDbgInfo::printVariableDeclaration(const Value *V) {
Out << "; ";
WriteAsOperand(Out, V, false, 0);
- Out << " is variable " << DisplayName
- << " of type " << Type << " declared at ";
+ if (isa<Function>(V))
+ Out << " is function " << DisplayName
+ << " of type " << Type << " declared at ";
+ else
+ Out << " is variable " << DisplayName
+ << " of type " << Type << " declared at ";
if (PrintDirectory)
Out << Directory << "/";