diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:36:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:36:42 +0000 |
commit | b21e5a0fdd9bd6e6c6885428798070f0a9f71295 (patch) | |
tree | a4559014d6766a847540d5b9a979c25a30021e2d /lib/CodeGen/CGDebugInfo.cpp | |
parent | 31530bae788dea5c79e72a1f99a56c3f5c6aa36f (diff) |
remove the SourceManager:: and FullSourceLoc::getFileEntryForLoc methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 9cbefa3d06..5e4a95cc0c 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -51,7 +51,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) { return llvm::DICompileUnit(); SourceManager &SM = M->getContext().getSourceManager(); - const FileEntry *FE = SM.getFileEntryForLoc(Loc); + const FileEntry *FE = SM.getFileEntryForID(SM.getCanonicalFileID(Loc)); if (FE == 0) return llvm::DICompileUnit(); // See if this compile unit has been used before. |