1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Make the LLVM headers "-ansi -pedantic -Wno-long-long" clean.

Patch by Martin Partel!

llvm-svn: 26313
This commit is contained in:
Chris Lattner 2006-02-22 16:23:43 +00:00
parent 2bd9a8623c
commit ed45ad33b7
26 changed files with 35 additions and 31 deletions

View File

@ -252,7 +252,7 @@ inline std::ostream& operator<< (std::ostream& O, const BitSetVector& bset)
{
bset.print(O);
return O;
};
}
///

View File

@ -20,6 +20,7 @@
#include "llvm/ADT/iterator"
#include <stack>
#include <set>
#include <vector>
namespace llvm {

View File

@ -16,6 +16,7 @@
#define LLVM_ADT_VECTOREXTRAS_H
#include <cstdarg>
#include <vector>
namespace llvm {

View File

@ -178,7 +178,7 @@ public:
/// CallsThrough - Indirect calls are made through the specified function
/// pointer.
CallsThrough,
CallsThrough
};
};

View 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();

View 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

View 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

View File

@ -55,6 +55,6 @@ namespace {
X.add((llvm::Value*)0, 0); // for -print-alias-sets
}
} ForceAnalysisPassLinking;
};
}
#endif

View 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
};
/// @}

View 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

View 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

View 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)

View File

@ -60,7 +60,7 @@ namespace llvm {
USE = 1,
DEF = 2,
STORE = 3,
NUM = 4,
NUM = 4
};
};

View 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:

View 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.
};

View 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

View 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

View 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
};
/// @}

View 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!

View 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

View 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

View 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)
};
/// @}

View 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

View 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);

View File

@ -110,6 +110,6 @@ namespace {
}
} ForcePassLinking;
};
}
#endif

View File

@ -27,4 +27,4 @@ namespace llvm {
/// inserted by the profiler.
virtual bool isProfiling(Value* v) = 0;
};
};
}