From: Nick Lewycky Date: Thu, 18 Aug 2011 19:07:42 +0000 (+0000) Subject: The edge from DISubprogram to DICompileUnit has been removed in recent versions X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=58e2cdfabd7b7c9a780dc086add162262c671ac4;p=oota-llvm.git The edge from DISubprogram to DICompileUnit has been removed in recent versions of debug info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137972 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 68d863409ae..089c8b98761 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -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;