]> granicus.if.org Git - clang/commitdiff
This wasn't headers, just missing namespaces.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 24 Aug 2013 13:22:59 +0000 (13:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 24 Aug 2013 13:22:59 +0000 (13:22 +0000)
/me bows head in shame.

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

include/clang/Serialization/GlobalModuleIndex.h
lib/Frontend/ASTUnit.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ModuleManager.cpp

index ab91f4009c0b08c958feb7474c5be34d2f456922..76414ba634ccf79f9778e62c8025ce65785fd6dc 100644 (file)
@@ -34,6 +34,7 @@ namespace clang {
 class DirectoryEntry;
 class FileEntry;
 class FileManager;
+class IdentifierIterator;
 
 namespace serialization {
   class ModuleFile;
index b6a35c8cd3ad0cca3da99011a29b2ec13a6d2640..531adcdb50b1e5acf467ce633807ef4365c71770 100644 (file)
@@ -2679,8 +2679,8 @@ void ASTUnit::addFileLevelDecl(Decl *D) {
     return;
   }
 
-  LocDeclsTy::iterator I =
-      std::upper_bound(Decls->begin(), Decls->end(), LocDecl, less_first());
+  LocDeclsTy::iterator I = std::upper_bound(Decls->begin(), Decls->end(),
+                                            LocDecl, llvm::less_first());
 
   Decls->insert(I, LocDecl);
 }
@@ -2706,7 +2706,7 @@ void ASTUnit::findFileRegionDecls(FileID File, unsigned Offset, unsigned Length,
 
   LocDeclsTy::iterator BeginIt =
       std::lower_bound(LocDecls.begin(), LocDecls.end(),
-                       std::make_pair(Offset, (Decl *)0), less_first());
+                       std::make_pair(Offset, (Decl *)0), llvm::less_first());
   if (BeginIt != LocDecls.begin())
     --BeginIt;
 
@@ -2719,7 +2719,7 @@ void ASTUnit::findFileRegionDecls(FileID File, unsigned Offset, unsigned Length,
 
   LocDeclsTy::iterator EndIt = std::upper_bound(
       LocDecls.begin(), LocDecls.end(),
-      std::make_pair(Offset + Length, (Decl *)0), less_first());
+      std::make_pair(Offset + Length, (Decl *)0), llvm::less_first());
   if (EndIt != LocDecls.end())
     ++EndIt;
   
index 1186bfb58294903f0917a292e1b2c43c8efac4aa..7f1bd9b882ec1b78286b3db4fe1999c79caca74a 100644 (file)
@@ -43,7 +43,6 @@
 #include "llvm/ADT/APFloat.h"
 #include "llvm/ADT/APInt.h"
 #include "llvm/ADT/Hashing.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Bitcode/BitstreamWriter.h"
 #include "llvm/Support/FileSystem.h"
@@ -4662,8 +4661,8 @@ void ASTWriter::associateDeclWithFile(const Decl *D, DeclID ID) {
     return;
   }
 
-  LocDeclIDsTy::iterator
-    I = std::upper_bound(Decls.begin(), Decls.end(), LocDecl, less_first());
+  LocDeclIDsTy::iterator I =
+      std::upper_bound(Decls.begin(), Decls.end(), LocDecl, llvm::less_first());
 
   Decls.insert(I, LocDecl);
 }
index a5e81e89545e9e509dd7e0332ceace8aecc1e3d5..f75c3b2b33ac591c8f756fbda74fe853c7f7a21e 100644 (file)
@@ -14,7 +14,6 @@
 #include "clang/Lex/ModuleMap.h"
 #include "clang/Serialization/GlobalModuleIndex.h"
 #include "clang/Serialization/ModuleManager.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"