[cfe-commits] r62556 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Daniel Dunbar
daniel at zuster.org
Mon Jan 19 17:06:30 PST 2009
Author: ddunbar
Date: Mon Jan 19 19:06:30 2009
New Revision: 62556
URL: http://llvm.org/viewvc/llvm-project?rev=62556&view=rev
Log:
Update for new SourceLocation API.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=62556&r1=62555&r2=62556&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jan 19 19:06:30 2009
@@ -51,6 +51,7 @@
return llvm::DICompileUnit();
SourceManager &SM = M->getContext().getSourceManager();
+ Loc = SM.getInstantiationLoc(Loc);
const FileEntry *FE = SM.getFileEntryForID(SM.getFileID(Loc));
if (FE == 0) return llvm::DICompileUnit();
More information about the cfe-commits
mailing list