mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Included assert.h so that the code compiles under newer versions of GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6682 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aff713cca5
commit
be583b914d
@ -16,6 +16,7 @@
|
||||
#define SUPPORT_ANNOTATION_H
|
||||
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
class AnnotationID;
|
||||
class Annotation;
|
||||
class Annotable;
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#define WORDSIZE (32U)
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
#include <cstdarg>
|
||||
#include "boost/type_traits/object_traits.hpp"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/// cl Namespace - This namespace contains all of the command line option
|
||||
/// processing machinery. It is intentionally a short name to make qualified
|
||||
/// usage concise.
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <stack>
|
||||
#include <map>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// class SCC : A simple representation of an SCC in a generic Graph.
|
||||
|
@ -29,6 +29,8 @@
|
||||
#include <vector>
|
||||
#include <iosfwd>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class TimerGroup;
|
||||
|
||||
class Timer {
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
template<class ConcreteTreeNode, class Payload>
|
||||
class Tree {
|
||||
std::vector<ConcreteTreeNode*> Children; // This nodes children, if any
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#define WORDSIZE (32U)
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <stack>
|
||||
#include <map>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// class SCC : A simple representation of an SCC in a generic Graph.
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
template<class ConcreteTreeNode, class Payload>
|
||||
class Tree {
|
||||
std::vector<ConcreteTreeNode*> Children; // This nodes children, if any
|
||||
|
@ -10,6 +10,8 @@
|
||||
#ifndef LLVM_ANALYSIS_ALIASSETTRACKER_H
|
||||
#define LLVM_ANALYSIS_ALIASSETTRACKER_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "Support/iterator"
|
||||
#include "Support/hash_map"
|
||||
|
@ -41,6 +41,8 @@
|
||||
#ifndef LLVM_ANALYSIS_CALLGRAPH_H
|
||||
#define LLVM_ANALYSIS_CALLGRAPH_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "Support/GraphTraits.h"
|
||||
#include "Support/STLExtras.h"
|
||||
#include "llvm/Pass.h"
|
||||
|
@ -9,6 +9,8 @@
|
||||
#ifndef LLVM_ANALYSIS_CONSTANTSSCANNER_H
|
||||
#define LLVM_ANALYSIS_CONSTANTSSCANNER_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Support/InstIterator.h"
|
||||
#include "llvm/Instruction.h"
|
||||
#include "Support/iterator"
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSGRAPH_H
|
||||
#define LLVM_ANALYSIS_DSGRAPH_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSNode.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -9,6 +9,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H
|
||||
#define LLVM_ANALYSIS_DSGRAPHTRAITS_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSGraph.h"
|
||||
#include "Support/GraphTraits.h"
|
||||
#include "Support/iterator"
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSNODE_H
|
||||
#define LLVM_ANALYSIS_DSNODE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSSupport.h"
|
||||
template<typename BaseType>
|
||||
class DSNodeIterator; // Data structure graph traversal iterator
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSSUPPORT_H
|
||||
#define LLVM_ANALYSIS_DSSUPPORT_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H
|
||||
#define LLVM_ANALYSIS_DATA_STRUCTURE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "Support/HashExtras.h"
|
||||
#include "Support/hash_set"
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSGRAPH_H
|
||||
#define LLVM_ANALYSIS_DSGRAPH_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSNode.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -9,6 +9,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H
|
||||
#define LLVM_ANALYSIS_DSGRAPHTRAITS_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSGraph.h"
|
||||
#include "Support/GraphTraits.h"
|
||||
#include "Support/iterator"
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSNODE_H
|
||||
#define LLVM_ANALYSIS_DSNODE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Analysis/DSSupport.h"
|
||||
template<typename BaseType>
|
||||
class DSNodeIterator; // Data structure graph traversal iterator
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DSSUPPORT_H
|
||||
#define LLVM_ANALYSIS_DSSUPPORT_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H
|
||||
#define LLVM_ANALYSIS_DATA_STRUCTURE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "Support/HashExtras.h"
|
||||
#include "Support/hash_set"
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class Instruction;
|
||||
class Function;
|
||||
class Dependence;
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include <set>
|
||||
#include <assert.h>
|
||||
class Instruction;
|
||||
|
||||
template <typename GraphType> struct GraphTraits;
|
||||
|
@ -39,6 +39,8 @@
|
||||
#ifndef LLVM_ANALYSIS_IPMODREF_H
|
||||
#define LLVM_ANALYSIS_IPMODREF_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "Support/BitSetVector.h"
|
||||
#include "Support/hash_map"
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "llvm/Function.h"
|
||||
#include "Support/Tree.h"
|
||||
#include <map>
|
||||
#include <assert.h>
|
||||
|
||||
template<class Payload> class InstTreeNode;
|
||||
template<class Payload> class InstForest;
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <stack>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
|
||||
// getNodeHeader - Given a source graph node and the source graph, return the
|
||||
// BasicBlock that is the header node. This is the opposite of
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "Support/NonCopyable.h"
|
||||
#include "Support/hash_map"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class Instruction;
|
||||
class Function;
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "Support/NonCopyable.h"
|
||||
#include <iterator>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class Instruction;
|
||||
class Function;
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include "llvm/Instruction.h"
|
||||
#include "Support/HashExtras.h"
|
||||
#include <assert.h>
|
||||
|
||||
class Constant;
|
||||
class BasicBlock;
|
||||
|
@ -8,6 +8,7 @@
|
||||
#define LLVM_CODEGEN_INSTR_SELECTION_H
|
||||
|
||||
#include "llvm/Instruction.h"
|
||||
#include <assert.h>
|
||||
class Function;
|
||||
class InstrForest;
|
||||
class MachineInstr;
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include <map>
|
||||
#include <assert.h>
|
||||
|
||||
class MRegisterInfo;
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include "Support/Annotation.h"
|
||||
#include <vector>
|
||||
#include <assert.h>
|
||||
|
||||
class MachineInstr;
|
||||
class Instruction;
|
||||
class Value;
|
||||
|
@ -35,6 +35,7 @@ class TargetData;
|
||||
class TargetRegisterClass;
|
||||
class MachineFunction;
|
||||
#include <vector>
|
||||
#include <assert.h>
|
||||
|
||||
class MachineFrameInfo {
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "Support/Annotation.h"
|
||||
#include "Support/iterator"
|
||||
#include <set>
|
||||
#include <assert.h>
|
||||
|
||||
class Value;
|
||||
class Function;
|
||||
class MachineBasicBlock;
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/Target/TargetRegInfo.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class Value;
|
||||
class TmpInstruction;
|
||||
class CallInst;
|
||||
|
@ -12,6 +12,8 @@
|
||||
|
||||
#include "llvm/Target/MRegisterInfo.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class TargetRegisterClass;
|
||||
|
||||
class SSARegMap {
|
||||
|
@ -7,6 +7,7 @@
|
||||
#ifndef LLVM_CONSTANT_H
|
||||
#define LLVM_CONSTANT_H
|
||||
|
||||
#include <assert.h>
|
||||
#include "llvm/User.h"
|
||||
|
||||
class Constant : public User {
|
||||
|
@ -33,6 +33,8 @@
|
||||
#ifndef LLVM_CONSTANTHANDLING_H
|
||||
#define LLVM_CONSTANTHANDLING_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Type.h"
|
||||
class PointerType;
|
||||
|
@ -8,6 +8,8 @@
|
||||
#ifndef LLVM_CONSTANTS_H
|
||||
#define LLVM_CONSTANTS_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Constant.h"
|
||||
#include "Support/DataTypes.h"
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#ifndef LLVM_DERIVED_TYPES_H
|
||||
#define LLVM_DERIVED_TYPES_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Type.h"
|
||||
|
||||
class DerivedType : public Type {
|
||||
|
@ -13,6 +13,8 @@
|
||||
#ifndef LLVM_GLOBAL_VARIABLE_H
|
||||
#define LLVM_GLOBAL_VARIABLE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/GlobalValue.h"
|
||||
class Module;
|
||||
class Constant;
|
||||
|
@ -8,6 +8,8 @@
|
||||
#ifndef LLVM_INSTRUCTION_H
|
||||
#define LLVM_INSTRUCTION_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/User.h"
|
||||
template<typename SC> struct ilist_traits;
|
||||
template<typename ValueSubClass, typename ItemParentClass, typename SymTabClass,
|
||||
|
@ -22,6 +22,8 @@
|
||||
#ifndef LLVM_PASS_H
|
||||
#define LLVM_PASS_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <iosfwd>
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// No need to include Pass.h, we are being included by it!
|
||||
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// AnalysisUsage - Represent the analysis usage information of a pass. This
|
||||
|
@ -14,6 +14,8 @@
|
||||
#ifndef LLVM_PASS_SUPPORT_H
|
||||
#define LLVM_PASS_SUPPORT_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
// No need to include Pass.h, we are being included by it!
|
||||
|
||||
class TargetMachine;
|
||||
|
@ -16,6 +16,7 @@
|
||||
#define SUPPORT_ANNOTATION_H
|
||||
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
class AnnotationID;
|
||||
class Annotation;
|
||||
class Annotable;
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "llvm/InstrTypes.h"
|
||||
#include "Support/iterator"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// BasicBlock pred_iterator definition
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
@ -19,6 +19,8 @@
|
||||
#include <cstdarg>
|
||||
#include "boost/type_traits/object_traits.hpp"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/// cl Namespace - This namespace contains all of the command line option
|
||||
/// processing machinery. It is intentionally a short name to make qualified
|
||||
/// usage concise.
|
||||
|
@ -44,6 +44,8 @@
|
||||
#define LLVM_SUPPORT_INSTVISITOR_H
|
||||
|
||||
#include "llvm/Instruction.h"
|
||||
#include <assert.h>
|
||||
|
||||
class Module;
|
||||
|
||||
// We operate on opaque instruction classes, so forward declare all instruction
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "llvm/Pass.h"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <assert.h>
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// PassNameParser class - Make use of the pass registration mechanism to
|
||||
|
@ -29,6 +29,8 @@
|
||||
#include <vector>
|
||||
#include <iosfwd>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class TimerGroup;
|
||||
|
||||
class Timer {
|
||||
|
@ -16,6 +16,8 @@
|
||||
#ifndef LLVM_SYMBOL_TABLE_H
|
||||
#define LLVM_SYMBOL_TABLE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Value.h"
|
||||
#include <map>
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
#define LLVM_TARGET_TARGETCACHEINFO_H
|
||||
|
||||
#include "Support/DataTypes.h"
|
||||
#include <assert.h>
|
||||
|
||||
class TargetMachine;
|
||||
|
||||
struct TargetCacheInfo {
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "Support/DataTypes.h"
|
||||
#include <vector>
|
||||
#include <assert.h>
|
||||
|
||||
class MachineInstr;
|
||||
class TargetMachine;
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#include "Support/hash_map"
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
|
||||
class TargetMachine;
|
||||
class IGNode;
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "Support/hash_map"
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
|
||||
typedef long long cycles_t;
|
||||
static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
|
||||
|
@ -12,6 +12,8 @@
|
||||
#ifndef LLVM_USER_H
|
||||
#define LLVM_USER_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Value.h"
|
||||
|
||||
class User : public Value {
|
||||
|
@ -8,6 +8,8 @@
|
||||
#ifndef LLVM_IOTHER_H
|
||||
#define LLVM_IOTHER_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/InstrTypes.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -7,6 +7,8 @@
|
||||
#ifndef LLVM_IPHINODE_H
|
||||
#define LLVM_IPHINODE_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Instruction.h"
|
||||
class BasicBlock;
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
#ifndef LLVM_ITERMINATORS_H
|
||||
#define LLVM_ITERMINATORS_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/InstrTypes.h"
|
||||
|
||||
//===---------------------------------------------------------------------------
|
||||
|
@ -26,6 +26,7 @@
|
||||
#define IG_NODE_H
|
||||
|
||||
#include "llvm/CodeGen/LiveRange.h"
|
||||
#include <assert.h>
|
||||
class RegClass;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "llvm/CodeGen/ValueSet.h"
|
||||
#include "llvm/Value.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class RegClass;
|
||||
class IGNode;
|
||||
class Type;
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include "Support/Annotation.h"
|
||||
#include <vector>
|
||||
#include <assert.h>
|
||||
|
||||
class MachineInstr;
|
||||
class Instruction;
|
||||
class Value;
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/Target/TargetRegInfo.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class Value;
|
||||
class TmpInstruction;
|
||||
class CallInst;
|
||||
|
@ -26,6 +26,7 @@
|
||||
#define IG_NODE_H
|
||||
|
||||
#include "llvm/CodeGen/LiveRange.h"
|
||||
#include <assert.h>
|
||||
class RegClass;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "llvm/CodeGen/ValueSet.h"
|
||||
#include "llvm/Value.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class RegClass;
|
||||
class IGNode;
|
||||
class Type;
|
||||
|
@ -33,6 +33,8 @@
|
||||
#ifndef LLVM_CONSTANTHANDLING_H
|
||||
#define LLVM_CONSTANTHANDLING_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Type.h"
|
||||
class PointerType;
|
||||
|
@ -33,6 +33,8 @@
|
||||
#ifndef LLVM_CONSTANTHANDLING_H
|
||||
#define LLVM_CONSTANTHANDLING_H
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Type.h"
|
||||
class PointerType;
|
||||
|
Loading…
Reference in New Issue
Block a user