]> granicus.if.org Git - clang/commitdiff
Rename DiagnosticInfoWithDebugLoc to WithLocation to match LLVM
authorJustin Bogner <mail@justinbogner.com>
Fri, 17 Feb 2017 17:34:49 +0000 (17:34 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 17 Feb 2017 17:34:49 +0000 (17:34 +0000)
Updates for llvm r295465.

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

lib/CodeGen/CodeGenAction.cpp

index 89a7c7c727b0bc4769913eed4c20b25706653299..c76041456190b53683dbb2f7950f8a63f69c13d3 100644 (file)
@@ -287,7 +287,7 @@ namespace clang {
     /// Get the best possible source location to represent a diagnostic that
     /// may have associated debug info.
     const FullSourceLoc
-    getBestLocationFromDebugLoc(const llvm::DiagnosticInfoWithDebugLocBase &D,
+    getBestLocationFromDebugLoc(const llvm::DiagnosticInfoWithLocationBase &D,
                                 bool &BadDebugInfo, StringRef &Filename,
                                 unsigned &Line, unsigned &Column) const;
 
@@ -488,8 +488,8 @@ BackendConsumer::StackSizeDiagHandler(const llvm::DiagnosticInfoStackSize &D) {
 }
 
 const FullSourceLoc BackendConsumer::getBestLocationFromDebugLoc(
-    const llvm::DiagnosticInfoWithDebugLocBase &D, bool &BadDebugInfo, StringRef &Filename,
-                                unsigned &Line, unsigned &Column) const {
+    const llvm::DiagnosticInfoWithLocationBase &D, bool &BadDebugInfo,
+    StringRef &Filename, unsigned &Line, unsigned &Column) const {
   SourceManager &SourceMgr = Context->getSourceManager();
   FileManager &FileMgr = SourceMgr.getFileManager();
   SourceLocation DILoc;