diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-28 23:24:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-28 23:24:31 +0000 |
commit | e4b275610a7a05b7ee4c0378a906a6330e4c4ab0 (patch) | |
tree | ad839c82009fa9220c9934db785cfa5ee35c9d25 /lib/Analysis/DbgInfoPrinter.cpp | |
parent | e4e4ed3b56f63e9343e01bf0b2ecd7c1f45d296c (diff) | |
download | llvm-e4b275610a7a05b7ee4c0378a906a6330e4c4ab0.tar.gz llvm-e4b275610a7a05b7ee4c0378a906a6330e4c4ab0.tar.bz2 llvm-e4b275610a7a05b7ee4c0378a906a6330e4c4ab0.tar.xz |
Reapply 79977.
Use MDNodes to encode debug info in llvm IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DbgInfoPrinter.cpp')
-rw-r--r-- | lib/Analysis/DbgInfoPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp index 913490d604..8063476bb5 100644 --- a/lib/Analysis/DbgInfoPrinter.cpp +++ b/lib/Analysis/DbgInfoPrinter.cpp @@ -90,7 +90,7 @@ void PrintDbgInfo::printStopPoint(const DbgStopPointInst *DSI) { } void PrintDbgInfo::printFuncStart(const DbgFuncStartInst *FS) { - DISubprogram Subprogram(cast<GlobalVariable>(FS->getSubprogram())); + DISubprogram Subprogram(FS->getSubprogram()); std::string Res1, Res2; Out << "; fully qualified function name: " << Subprogram.getDisplayName(Res1) << " return type: " << Subprogram.getReturnTypeName(Res2) |