The edge from DISubprogram to DICompileUnit has been removed in recent versions
authorNick Lewycky <nicholas@mxc.ca>
Thu, 18 Aug 2011 19:07:42 +0000 (19:07 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 18 Aug 2011 19:07:42 +0000 (19:07 +0000)
of debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137972 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/GCOVProfiling.cpp

index 68d863409aee2735202f172a3f175779b707bcbc..089c8b9876116c1e6fe4970b676d53508b744501 100644 (file)
@@ -380,7 +380,7 @@ void GCOVProfiler::emitGCNO() {
       for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
         DISubprogram SP(SPs.getElement(i));
         if (!SP.Verify()) continue;
-        raw_fd_ostream *&os = GcnoFiles[SP.getCompileUnit()];
+        raw_fd_ostream *&os = GcnoFiles[CU];
         
         Function *F = SP.getFunction();
         if (!F) continue;