From 43d1fd449f1a0ac9d9dafa0b9569bb6b2e976198 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 29 May 2008 17:41:17 +0000 Subject: [PATCH] For PR1338: rename include/llvm/ADT/ilist and friends to end with ".h" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51687 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile | 12 ++++++------ autoconf/configure.ac | 6 +++--- include/llvm/ADT/DepthFirstIterator.h | 2 +- include/llvm/ADT/EquivalenceClasses.h | 2 +- include/llvm/ADT/HashExtras.h | 2 +- include/llvm/ADT/PostOrderIterator.h | 2 +- include/llvm/ADT/SCCIterator.h | 2 +- include/llvm/ADT/STLExtras.h | 2 +- include/llvm/ADT/SmallVector.h | 2 +- include/llvm/ADT/SparseBitVector.h | 2 +- include/llvm/ADT/{hash_map.in => hash_map.h.in} | 2 +- include/llvm/ADT/{hash_set.in => hash_set.h.in} | 2 +- include/llvm/ADT/{ilist => ilist.h} | 4 ++-- include/llvm/ADT/{iterator.in => iterator.h.in} | 2 +- include/llvm/Analysis/AliasSetTracker.h | 6 +++--- include/llvm/Analysis/ConstantsScanner.h | 2 +- include/llvm/BasicBlock.h | 2 +- include/llvm/Bitcode/Archive.h | 2 +- include/llvm/CodeGen/MachineBasicBlock.h | 2 +- include/llvm/CodeGen/MachineRegisterInfo.h | 2 +- include/llvm/CodeGen/SchedGraphCommon.h | 2 +- include/llvm/CodeGen/SelectionDAG.h | 2 +- include/llvm/CodeGen/SelectionDAGNodes.h | 2 +- include/llvm/Support/CFG.h | 2 +- include/llvm/Type.h | 2 +- include/llvm/Use.h | 2 +- tools/llvmc2/CompilationGraph.h | 2 +- 27 files changed, 37 insertions(+), 37 deletions(-) rename include/llvm/ADT/{hash_map.in => hash_map.h.in} (98%) rename include/llvm/ADT/{hash_set.in => hash_set.h.in} (97%) rename include/llvm/ADT/{ilist => ilist.h} (99%) rename include/llvm/ADT/{iterator.in => iterator.h.in} (96%) diff --git a/Makefile b/Makefile index 36031f7cb3d..83b789fa224 100644 --- a/Makefile +++ b/Makefile @@ -77,9 +77,9 @@ debug-opt-prof: dist-hook:: $(Echo) Eliminating files constructed by configure $(Verb) $(RM) -f \ - $(TopDistDir)/include/llvm/ADT/hash_map \ - $(TopDistDir)/include/llvm/ADT/hash_set \ - $(TopDistDir)/include/llvm/ADT/iterator \ + $(TopDistDir)/include/llvm/ADT/hash_map.h \ + $(TopDistDir)/include/llvm/ADT/hash_set.h \ + $(TopDistDir)/include/llvm/ADT/iterator.h \ $(TopDistDir)/include/llvm/Config/config.h \ $(TopDistDir)/include/llvm/Support/DataTypes.h \ $(TopDistDir)/include/llvm/Support/ThreadSupport.h @@ -95,9 +95,9 @@ install-libs: install FilesToConfig := \ include/llvm/Config/config.h \ include/llvm/Support/DataTypes.h \ - include/llvm/ADT/hash_map \ - include/llvm/ADT/hash_set \ - include/llvm/ADT/iterator + include/llvm/ADT/hash_map.h \ + include/llvm/ADT/hash_set.h \ + include/llvm/ADT/iterator.h FilesToConfigPATH := $(addprefix $(LLVM_OBJ_ROOT)/,$(FilesToConfig)) all-local:: $(FilesToConfigPATH) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 205788e2fd4..15cfa347c3d 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -981,9 +981,9 @@ dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the dnl files can be updated automatically when their *.in sources change. AC_CONFIG_HEADERS([include/llvm/Config/config.h]) AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h]) -AC_CONFIG_HEADERS([include/llvm/ADT/hash_map]) -AC_CONFIG_HEADERS([include/llvm/ADT/hash_set]) -AC_CONFIG_HEADERS([include/llvm/ADT/iterator]) +AC_CONFIG_HEADERS([include/llvm/ADT/hash_map.h]) +AC_CONFIG_HEADERS([include/llvm/ADT/hash_set.h]) +AC_CONFIG_HEADERS([include/llvm/ADT/iterator.h]) dnl Configure the makefile's configuration data AC_CONFIG_FILES([Makefile.config]) diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h index 7dba378cf14..28c18856765 100644 --- a/include/llvm/ADT/DepthFirstIterator.h +++ b/include/llvm/ADT/DepthFirstIterator.h @@ -34,7 +34,7 @@ #define LLVM_ADT_DEPTHFIRSTITERATOR_H #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include "llvm/ADT/SmallPtrSet.h" #include #include diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h index 28aacfeccfc..6e00a217beb 100644 --- a/include/llvm/ADT/EquivalenceClasses.h +++ b/include/llvm/ADT/EquivalenceClasses.h @@ -15,7 +15,7 @@ #ifndef LLVM_ADT_EQUIVALENCECLASSES_H #define LLVM_ADT_EQUIVALENCECLASSES_H -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include "llvm/Support/DataTypes.h" #include diff --git a/include/llvm/ADT/HashExtras.h b/include/llvm/ADT/HashExtras.h index 2912df264be..fcc50c8510f 100644 --- a/include/llvm/ADT/HashExtras.h +++ b/include/llvm/ADT/HashExtras.h @@ -17,7 +17,7 @@ #ifndef LLVM_ADT_HASHEXTRAS_H #define LLVM_ADT_HASHEXTRAS_H -#include "llvm/ADT/hash_map" +#include "llvm/ADT/hash_map.h" #include // Cannot specialize hash template from outside of the std namespace. diff --git a/include/llvm/ADT/PostOrderIterator.h b/include/llvm/ADT/PostOrderIterator.h index f68de30ff61..cc43d26d348 100644 --- a/include/llvm/ADT/PostOrderIterator.h +++ b/include/llvm/ADT/PostOrderIterator.h @@ -17,7 +17,7 @@ #define LLVM_ADT_POSTORDERITERATOR_H #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include #include #include diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h index bd18f13ada9..ab5e2f4fc3e 100644 --- a/include/llvm/ADT/SCCIterator.h +++ b/include/llvm/ADT/SCCIterator.h @@ -22,7 +22,7 @@ #define LLVM_ADT_SCCITERATOR_H #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include #include diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index dd1b5416330..f1883959d76 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -20,7 +20,7 @@ #include #include // for std::pair #include // for std::size_t -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" namespace llvm { diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index c2e2c17ad28..843d561b6bc 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -14,7 +14,7 @@ #ifndef LLVM_ADT_SMALLVECTOR_H #define LLVM_ADT_SMALLVECTOR_H -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include #include diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h index 4c28682d399..adeb541d3d0 100644 --- a/include/llvm/ADT/SparseBitVector.h +++ b/include/llvm/ADT/SparseBitVector.h @@ -21,7 +21,7 @@ #include "llvm/Support/DataTypes.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/MathExtras.h" -#include "llvm/ADT/ilist" +#include "llvm/ADT/ilist.h" namespace llvm { /// SparseBitVector is an implementation of a bitvector that is sparse by only diff --git a/include/llvm/ADT/hash_map.in b/include/llvm/ADT/hash_map.h.in similarity index 98% rename from include/llvm/ADT/hash_map.in rename to include/llvm/ADT/hash_map.h.in index b5c785f1a41..088fe93808c 100644 --- a/include/llvm/ADT/hash_map.in +++ b/include/llvm/ADT/hash_map.h.in @@ -1,4 +1,4 @@ -//===-- llvm/ADT/hash_map - "Portable" wrapper around hash_map --*- C++ -*-===// +//==-- llvm/ADT/hash_map.h - "Portable" wrapper around hash_map --*- C++ -*-==// // // The LLVM Compiler Infrastructure // diff --git a/include/llvm/ADT/hash_set.in b/include/llvm/ADT/hash_set.h.in similarity index 97% rename from include/llvm/ADT/hash_set.in rename to include/llvm/ADT/hash_set.h.in index a0945ce4ac7..85493297490 100644 --- a/include/llvm/ADT/hash_set.in +++ b/include/llvm/ADT/hash_set.h.in @@ -1,4 +1,4 @@ -//===-- llvm/ADT/hash_set - "Portable" wrapper around hash_set --*- C++ -*-===// +//==-- llvm/ADT/hash_set.h - "Portable" wrapper around hash_set --*- C++ -*-==// // // The LLVM Compiler Infrastructure // diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist.h similarity index 99% rename from include/llvm/ADT/ilist rename to include/llvm/ADT/ilist.h index d465cbfc715..d4bcb5b9040 100644 --- a/include/llvm/ADT/ilist +++ b/include/llvm/ADT/ilist.h @@ -1,4 +1,4 @@ -//===-- llvm/ADT/ilist - Intrusive Linked List Template ---------*- C++ -*-===// +//==-- llvm/ADT/ilist.h - Intrusive Linked List Template ---------*- C++ -*-==// // // The LLVM Compiler Infrastructure // @@ -38,7 +38,7 @@ #ifndef LLVM_ADT_ILIST #define LLVM_ADT_ILIST -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include #include diff --git a/include/llvm/ADT/iterator.in b/include/llvm/ADT/iterator.h.in similarity index 96% rename from include/llvm/ADT/iterator.in rename to include/llvm/ADT/iterator.h.in index 3494c710212..86d4be34d41 100644 --- a/include/llvm/ADT/iterator.in +++ b/include/llvm/ADT/iterator.h.in @@ -1,4 +1,4 @@ -//===-- llvm/ADT/iterator - Portable wrapper around --*- C++ -*-===// +//==-- llvm/ADT/iterator.h - Portable wrapper around --*- C++ -*-==// // // The LLVM Compiler Infrastructure // diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index 70c25b0680b..d9e45ce9a1c 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -19,9 +19,9 @@ #include "llvm/Support/CallSite.h" #include "llvm/Support/Streams.h" -#include "llvm/ADT/iterator" -#include "llvm/ADT/hash_map" -#include "llvm/ADT/ilist" +#include "llvm/ADT/iterator.h" +#include "llvm/ADT/hash_map.h" +#include "llvm/ADT/ilist.h" namespace llvm { diff --git a/include/llvm/Analysis/ConstantsScanner.h b/include/llvm/Analysis/ConstantsScanner.h index 0be54bbfce5..c52b24efe8b 100644 --- a/include/llvm/Analysis/ConstantsScanner.h +++ b/include/llvm/Analysis/ConstantsScanner.h @@ -18,7 +18,7 @@ #include "llvm/Support/InstIterator.h" #include "llvm/Instruction.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" namespace llvm { diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index edb32833035..108f43a7675 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -16,7 +16,7 @@ #include "llvm/Instruction.h" #include "llvm/SymbolTableListTraits.h" -#include "llvm/ADT/ilist" +#include "llvm/ADT/ilist.h" #include "llvm/Support/DataTypes.h" namespace llvm { diff --git a/include/llvm/Bitcode/Archive.h b/include/llvm/Bitcode/Archive.h index 50562e490ff..91684c62e23 100644 --- a/include/llvm/Bitcode/Archive.h +++ b/include/llvm/Bitcode/Archive.h @@ -17,7 +17,7 @@ #ifndef LLVM_BITCODE_ARCHIVE_H #define LLVM_BITCODE_ARCHIVE_H -#include "llvm/ADT/ilist" +#include "llvm/ADT/ilist.h" #include "llvm/System/Path.h" #include #include diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 6fbe17005cd..cd7c8d5992d 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -16,7 +16,7 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/ilist" +#include "llvm/ADT/ilist.h" #include "llvm/Support/Streams.h" namespace llvm { diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index 665b55c4ca0..f5fda9bfc02 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -16,7 +16,7 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/ADT/BitVector.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include namespace llvm { diff --git a/include/llvm/CodeGen/SchedGraphCommon.h b/include/llvm/CodeGen/SchedGraphCommon.h index eeec617a3e7..514c464dff3 100644 --- a/include/llvm/CodeGen/SchedGraphCommon.h +++ b/include/llvm/CodeGen/SchedGraphCommon.h @@ -16,7 +16,7 @@ #define LLVM_CODEGEN_SCHEDGRAPHCOMMON_H #include "llvm/Value.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include "llvm/Support/Streams.h" #include diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 5094f023f5b..b68ed60681c 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -16,7 +16,7 @@ #define LLVM_CODEGEN_SELECTIONDAG_H #include "llvm/ADT/FoldingSet.h" -#include "llvm/ADT/ilist" +#include "llvm/ADT/ilist.h" #include "llvm/CodeGen/SelectionDAGNodes.h" #include diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 8388ab91f29..081b0e19035 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -22,7 +22,7 @@ #include "llvm/Value.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/APInt.h" #include "llvm/CodeGen/ValueTypes.h" diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 0d49aecb097..b0b857bf028 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -18,7 +18,7 @@ #include "llvm/ADT/GraphTraits.h" #include "llvm/Function.h" #include "llvm/InstrTypes.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" namespace llvm { diff --git a/include/llvm/Type.h b/include/llvm/Type.h index b029212de49..c19e34b35dd 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -16,7 +16,7 @@ #include "llvm/Support/DataTypes.h" #include "llvm/Support/Streams.h" #include "llvm/ADT/GraphTraits.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include #include diff --git a/include/llvm/Use.h b/include/llvm/Use.h index d4152b39df1..0a971d18ce3 100644 --- a/include/llvm/Use.h +++ b/include/llvm/Use.h @@ -17,7 +17,7 @@ #define LLVM_USE_H #include "llvm/Support/Casting.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" namespace llvm { diff --git a/tools/llvmc2/CompilationGraph.h b/tools/llvmc2/CompilationGraph.h index 2169cd39ce7..91a9c77f9a5 100644 --- a/tools/llvmc2/CompilationGraph.h +++ b/tools/llvmc2/CompilationGraph.h @@ -19,7 +19,7 @@ #include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" #include "llvm/System/Path.h" -- 2.34.1