DebugInfo: Gut DICompileUnit and DIFile
[oota-llvm.git] / lib / Transforms / Instrumentation / GCOVProfiling.cpp
index 5791ae10e85cd5818d85597137ec2ff86e365cc8..368a81d7aba8ece690c92e3f13993d3fb87a35cb 100644 (file)
@@ -437,7 +437,7 @@ std::string GCOVProfiler::mangleName(DICompileUnit CU, const char *NewStem) {
     }
   }
 
-  SmallString<128> Filename = CU.getFilename();
+  SmallString<128> Filename = CU->getFilename();
   sys::path::replace_extension(Filename, NewStem);
   StringRef FName = sys::path::filename(Filename);
   SmallString<128> CurPath;