Make the LLVM headers "-ansi -pedantic -Wno-long-long" clean.
authorChris Lattner <sabre@nondot.org>
Wed, 22 Feb 2006 16:23:43 +0000 (16:23 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 22 Feb 2006 16:23:43 +0000 (16:23 +0000)
Patch by Martin Partel!

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

26 files changed:
include/llvm/ADT/BitSetVector.h
include/llvm/ADT/PostOrderIterator.h
include/llvm/ADT/VectorExtras.h
include/llvm/Analysis/AliasAnalysis.h
include/llvm/Analysis/DataStructure/DSGraph.h
include/llvm/Analysis/DataStructure/DSNode.h
include/llvm/Analysis/DataStructure/DSSupport.h
include/llvm/Analysis/LinkAllAnalyses.h
include/llvm/Bytecode/Archive.h
include/llvm/Bytecode/Format.h
include/llvm/CallingConv.h
include/llvm/CodeGen/ELFWriter.h
include/llvm/CodeGen/LiveIntervalAnalysis.h
include/llvm/CodeGen/MachineInstr.h
include/llvm/CodeGen/ScheduleDAG.h
include/llvm/CodeGen/SelectionDAGNodes.h
include/llvm/CodeGen/ValueTypes.h
include/llvm/Linker.h
include/llvm/PassAnalysisSupport.h
include/llvm/System/MappedFile.h
include/llvm/System/Path.h
include/llvm/System/TimeValue.h
include/llvm/Target/MRegisterInfo.h
include/llvm/Target/TargetLowering.h
include/llvm/Transforms/LinkAllPasses.h
include/llvm/Transforms/RSProfiling.h

index 954bb79aa53230c59b4ecc6c176a469193abe9bd..619bb0cf5f45d2782dcf8d03dcdee538f441b63e 100644 (file)
@@ -252,7 +252,7 @@ inline std::ostream& operator<< (std::ostream& O, const BitSetVector& bset)
 {
   bset.print(O);
   return O;
-};
+}
 
 
 ///
index 76d99b4a2d6b44b984277fc9a17bda699f90a540..16f086577417c372f0a8be021463ebeebe14d321 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/ADT/iterator"
 #include <stack>
 #include <set>
+#include <vector>
 
 namespace llvm {
 
index 56d65bb3728f890ffa6eed0aa1a23c25811c5a58..bda2ae66fce5ebd22b6985be6febefbf4cc376bd 100644 (file)
@@ -16,6 +16,7 @@
 #define LLVM_ADT_VECTOREXTRAS_H
 
 #include <cstdarg>
+#include <vector>
 
 namespace llvm {
 
index eff29719c72dfc534b16fdb739f2a6520f3376b7..1cce4ea3930519abd065ea6167ee68c5dc9d255a 100644 (file)
@@ -178,7 +178,7 @@ public:
 
       /// CallsThrough - Indirect calls are made through the specified function
       /// pointer.
-      CallsThrough,
+      CallsThrough
     };
   };
 
index f38b59eb067fdd2bb58db5bccd8244389bab3f20..eb4388b6ad9ae1616cd8ff6c08be3043c86fe1f3 100644 (file)
@@ -411,7 +411,7 @@ public:
   //
   enum MarkIncompleteFlags {
     MarkFormalArgs = 1, IgnoreFormalArgs = 0,
-    IgnoreGlobals = 2, MarkGlobalsIncomplete = 0,
+    IgnoreGlobals = 2, MarkGlobalsIncomplete = 0
   };
   void markIncompleteNodes(unsigned Flags);
 
@@ -421,7 +421,7 @@ public:
   // graph entirely.  This is only appropriate to use when inlining graphs.
   //
   enum RemoveDeadNodesFlags {
-    RemoveUnreachableGlobals = 1, KeepUnreachableGlobals = 0,
+    RemoveUnreachableGlobals = 1, KeepUnreachableGlobals = 0
   };
   void removeDeadNodes(unsigned Flags);
 
@@ -432,7 +432,7 @@ public:
     DontCloneCallNodes    = 1 << 1, CloneCallNodes    = 0,
     DontCloneAuxCallNodes = 1 << 2, CloneAuxCallNodes = 0,
     StripModRefBits       = 1 << 3, KeepModRefBits    = 0,
-    StripIncompleteBit    = 1 << 4, KeepIncompleteBit = 0,
+    StripIncompleteBit    = 1 << 4, KeepIncompleteBit = 0
   };
 
   void updateFromGlobalGraph();
index e3442056cca0357ecbb817e703046edcfaab391c..83c9aba5d85d92d44ff7329c8a90290551392641 100644 (file)
@@ -95,7 +95,7 @@ public:
     DEAD        = 1 << 8,   // This node is dead and should not be pointed to
     //#endif
 
-    Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode,
+    Composition = AllocaNode | HeapNode | GlobalNode | UnknownNode
   };
 
   /// NodeType - A union of the above bits.  "Shadow" nodes do not add any flags
index 2fc52db25f0c1a80f98cb94fc2655d476d67c947..dc4c31f60a491a2435fabf16d16787dd62186467 100644 (file)
@@ -40,7 +40,7 @@ namespace DS { // FIXME: After the paper, this should get cleaned up
   /// a pointer.
   ///
   bool isPointerType(const Type *Ty);
-};
+}
 
 //===----------------------------------------------------------------------===//
 /// DSNodeHandle - Implement a "handle" to a data structure node that takes care
index afb120ed873740c3756a054cf5caeab80372e26c..cac2abdc4c588891c4e402aa5a63fe354b56e8a6 100644 (file)
@@ -55,6 +55,6 @@ namespace {
       X.add((llvm::Value*)0, 0);  // for -print-alias-sets
     }
   } ForceAnalysisPassLinking;
-};
+}
 
 #endif
index 618f0516cad453fcf540a860e3df08bed70112c2..dfc31261f675cd587404246520ea347ff43edc78 100644 (file)
@@ -56,7 +56,7 @@ class ArchiveMember {
       CompressedBytecodeFlag = 32, ///< Member is compressed bytecode
       HasPathFlag = 64,            ///< Member has a full or partial path
       HasLongFilenameFlag = 128,   ///< Member uses the long filename syntax
-      StringTableFlag = 256,       ///< Member is an ar(1) format string table
+      StringTableFlag = 256        ///< Member is an ar(1) format string table
     };
 
   /// @}
index 5f5feb8ddca568ea6a62e29350b431573f116bf3..24d1ed67ee8023eb347d741c0872487c296fe648 100644 (file)
@@ -47,7 +47,7 @@ public:
     // tables for a function, allowing the indices used within the function to
     // be as small as possible.  This often allows the instructions to be
     // encoded more efficiently.
-    CompactionTable = 0x33,
+    CompactionTable = 0x33
   };
 
   /// In LLVM 1.3 format, the identifier and the size of the block are
index 6da5482f454ff6f4690fc02b43cdd518ebcd0235..fd62fb73030d2f3a521836bafb4e7fc7a4dea397 100644 (file)
@@ -45,7 +45,7 @@ namespace CallingConv {
 
     // Target - This is the start of the target-specific calling conventions,
     // e.g. fastcall and thiscall on X86.
-    FirstTargetCC = 64,
+    FirstTargetCC = 64
   };
 } // End CallingConv namespace
 
index cc76e4d7b160fc297268d7fda00d531b8fd9b76e..b3914794f0418bff748342544cb6a9841fd94121 100644 (file)
@@ -131,7 +131,7 @@ namespace llvm {
         SHF_LINK_ORDER       = 1 << 7, // Preserve order after combining
         SHF_OS_NONCONFORMING = 1 << 8, // nonstandard OS support required
         SHF_GROUP            = 1 << 9, // Section is a member of a group
-        SHF_TLS              = 1 << 10,// Section holds thread-local data
+        SHF_TLS              = 1 << 10 // Section holds thread-local data
       };
 
       ELFSection(const std::string &name)
index a313c4b9f42b485c3a6b879165f7d8fcffb13c08..0ae4b5ad0f25762bd9d40f807d6651f2eedb89a6 100644 (file)
@@ -60,7 +60,7 @@ namespace llvm {
         USE   = 1,
         DEF   = 2,
         STORE = 3,
-        NUM   = 4,
+        NUM   = 4
       };
     };
 
index 56f374978ac8a43e8ab9f159553c47889cfe43bd..4f09046b0e55f17d9bccc421ac1d7e45b1bd300d 100644 (file)
@@ -79,7 +79,7 @@ private:
     LOFLAG32    = 0x08,       // operand is %lo32(value_or_immedVal)
     HIFLAG64    = 0x10,       // operand is %hi64(value_or_immedVal)
     LOFLAG64    = 0x20,       // operand is %lo64(value_or_immedVal)
-    PCRELATIVE  = 0x40,       // Operand is relative to PC, not a global address
+    PCRELATIVE  = 0x40        // Operand is relative to PC, not a global address
   };
 
 public:
@@ -106,7 +106,7 @@ public:
     MO_FrameIndex,              // Abstract Stack Frame Index
     MO_ConstantPoolIndex,       // Address of indexed Constant in Constant Pool
     MO_ExternalSymbol,          // Name of external global symbol
-    MO_GlobalAddress,           // Address of a global value
+    MO_GlobalAddress            // Address of a global value
   };
 
 private:
index c3513960ba61edee849dbc581d9e945163cde820..6c90a4a477195185c957e2f006083643479e10d5 100644 (file)
@@ -41,7 +41,7 @@ namespace llvm {
     noScheduling,           // No scheduling, emit breath first sequence.
     simpleScheduling,       // Two pass, min. critical path, max. utilization.
     simpleNoItinScheduling, // Same as above exact using generic latency.
-    listSchedulingBURR,     // Bottom up reg reduction list scheduling.
+    listSchedulingBURR      // Bottom up reg reduction list scheduling.
   };
 
 
index fe75a202d7e3715ee33bedae6e83e53cd4f11fb0..b72bf20fd19729316b98d53e27dcd6e252a6fd64 100644 (file)
@@ -402,7 +402,7 @@ namespace ISD {
     DEBUG_LABEL,
     
     // BUILTIN_OP_END - This must be the last enum value in this list.
-    BUILTIN_OP_END,
+    BUILTIN_OP_END
   };
 
   //===--------------------------------------------------------------------===//
@@ -447,7 +447,7 @@ namespace ISD {
     SETNE,         //  1 X 1 1 0       True if not equal
     SETTRUE2,      //  1 X 1 1 1       Always true (always folded)
 
-    SETCC_INVALID,      // Marker value.
+    SETCC_INVALID       // Marker value.
   };
 
   /// isSignedIntSetCC - Return true if this is a setcc instruction that
index 2fc4b0f9466c3025b4144ff77c8a839745991b1f..370f5c362064587181dc074a57f0616e034cab49 100644 (file)
@@ -59,7 +59,7 @@ namespace MVT {  // MVT = Machine Value Types
     v4f32          =  21,   //  4 x f32
     v2f64          =  22,   //  2 x f64
 
-    LAST_VALUETYPE,         // This always remains at the end of the list.
+    LAST_VALUETYPE          // This always remains at the end of the list.
   };
 
   static inline bool isInteger(ValueType VT) {
@@ -136,7 +136,7 @@ namespace MVT {  // MVT = Machine Value Types
   /// to the specified ValueType.  For integer types, this returns an unsigned
   /// type.  Note that this will abort for types that cannot be represented.
   const Type *getTypeForValueType(ValueType VT);
-};
+}
 
 } // End llvm namespace
 
index 21f32afb3c0122a9afc9fabd4e5e39d8126adad4..b260dc3fc17e8b2731784abff4d9cd582c1a1f49 100644 (file)
@@ -53,7 +53,7 @@ class Linker {
     enum ControlFlags {
       Verbose       = 1, ///< Print to std::cerr what steps the linker is taking
       QuietWarnings = 2, ///< Don't print errors and warnings to std::cerr.
-      QuietErrors   = 4, ///< Indicate that this link is for a native executable
+      QuietErrors   = 4  ///< Indicate that this link is for a native executable
     };
 
   /// @}
index 415f93cc67bb9a358818e209ac3e15bde12a0902..892d203ba3ac980c58936aa1e0b68fe18dcfb2f5 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef LLVM_PASS_ANALYSIS_SUPPORT_H
 #define LLVM_PASS_ANALYSIS_SUPPORT_H
 
+#include <vector>
+
 namespace llvm {
 
 // No need to include Pass.h, we are being included by it!
index 6092de6ffb8e5e3c9edb8c5a6a15bcc654ac35f7..9fd0d08357aaa664ca1b63ee8b06b95eac5c7439 100644 (file)
@@ -38,7 +38,7 @@ namespace sys {
       READ_ACCESS = 0x0001,     ///< Map the file for reading
       WRITE_ACCESS = 0x0002,    ///< Map the file for write access
       EXEC_ACCESS = 0x0004,     ///< Map the file for execution access
-      SHARED_MAPPING = 0x0008,  ///< Map the file shared with other processes
+      SHARED_MAPPING = 0x0008   ///< Map the file shared with other processes
     };
   /// @}
   /// @name Constructors
index 3ff657b0f67c65a22d4173e4b1b8e5ec75a4bcfa..5cbca9b31a953bc9d386a888a5e01a7c36a0c46e 100644 (file)
@@ -553,7 +553,7 @@ namespace sys {
     UnknownFileType = 0,            ///< Unrecognized file
     BytecodeFileType = 1,           ///< Uncompressed bytecode file
     CompressedBytecodeFileType = 2, ///< Compressed bytecode file
-    ArchiveFileType = 3,            ///< ar style archive file
+    ArchiveFileType = 3             ///< ar style archive file
   };
 
   /// This utility function allows any memory block to be examined in order
index 47f79cece59eadd8af07d5f536f873ea6c418ddd..624eb70176fba219cb41544dc661df886c2795ce 100644 (file)
@@ -75,7 +75,7 @@ namespace sys {
       NANOSECONDS_PER_MICROSECOND = 1000,   ///< One Thousand
       NANOSECONDS_PER_MILLISECOND = 1000000,///< One Million
       NANOSECONDS_PER_POSIX_TICK = 100,     ///< Posix tick is 100 Hz (10ms)
-      NANOSECONDS_PER_WIN32_TICK = 100,     ///< Win32 tick is 100 Hz (10ms)
+      NANOSECONDS_PER_WIN32_TICK = 100      ///< Win32 tick is 100 Hz (10ms)
     };
 
   /// @}
index 2f6d1308cbea60e0db1e84a7a263685dd9aea66b..a7ce2dc111486eaa3fefc28f70313acadf6cc13a 100644 (file)
@@ -169,7 +169,7 @@ public:
     /// namespace.  This must be the same for all targets, which means that each
     /// target is limited to 1024 registers.
     ///
-    FirstVirtualRegister = 1024,
+    FirstVirtualRegister = 1024
   };
 
   /// isPhysicalRegister - Return true if the specified register number is in
index 4757a4a56a7aaff170886c9a0e486bbf82a5b634..141e50d63136f40fa0dfb99f70bc92d903701b3d 100644 (file)
@@ -56,24 +56,24 @@ public:
     Legal,      // The target natively supports this operation.
     Promote,    // This operation should be executed in a larger type.
     Expand,     // Try to expand this to other ops, otherwise use a libcall.
-    Custom,     // Use the LowerOperation hook to implement custom lowering.
+    Custom      // Use the LowerOperation hook to implement custom lowering.
   };
 
   enum OutOfRangeShiftAmount {
     Undefined,  // Oversized shift amounts are undefined (default).
     Mask,       // Shift amounts are auto masked (anded) to value size.
-    Extend,     // Oversized shift pulls in zeros or sign bits.
+    Extend      // Oversized shift pulls in zeros or sign bits.
   };
 
   enum SetCCResultValue {
     UndefinedSetCCResult,          // SetCC returns a garbage/unknown extend.
     ZeroOrOneSetCCResult,          // SetCC returns a zero extended result.
-    ZeroOrNegativeOneSetCCResult,  // SetCC returns a sign extended result.
+    ZeroOrNegativeOneSetCCResult   // SetCC returns a sign extended result.
   };
 
   enum SchedPreference {
     SchedulingForLatency,          // Scheduling for shortest total latency.
-    SchedulingForRegPressure,      // Scheduling for lowest register pressure.
+    SchedulingForRegPressure       // Scheduling for lowest register pressure.
   };
 
   TargetLowering(TargetMachine &TM);
index 7986e3bd588572c0a1c6c2391776f7dc17f8396f..cc9621fefabb69110ac34edb5fed99e44d23f4e7 100644 (file)
@@ -110,6 +110,6 @@ namespace {
 
     }
   } ForcePassLinking;
-};
+}
 
 #endif
index 897f63ef6205bdcde52ffa888ccab71378842d42..2df2932f295eb4231ed56b707b65b506f63eb15f 100644 (file)
@@ -27,4 +27,4 @@ namespace llvm {
     /// inserted by the profiler.
     virtual bool isProfiling(Value* v) = 0;
   };
-};
+}