diff options
author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-17 14:56:40 +0000 |
---|---|---|
committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-17 14:56:40 +0000 |
commit | 2e15f6698d461579ba92bde9d2286b72f33556b7 (patch) | |
tree | ae6b915d1e467e108f69328b1f3d069eb2cade1c /include | |
parent | d5d4c872e2fbfeb92795cdbb9fe946c20280facc (diff) | |
download | external_llvm-2e15f6698d461579ba92bde9d2286b72f33556b7.zip external_llvm-2e15f6698d461579ba92bde9d2286b72f33556b7.tar.gz external_llvm-2e15f6698d461579ba92bde9d2286b72f33556b7.tar.bz2 |
Updated VC++ build system.
Silenced some VC warnings.
I'm getting linker errors, though: unresolved externals:
llvm::Split<class llvm::BasicBlock *,struct llvm::GraphTraits<class llvm::BasicBlock *> >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *)
and
llvm::Split<struct llvm::Inverse<class llvm::BasicBlock *>,struct llvm::GraphTraits<struct llvm::Inverse<class llvm::BasicBlock *> > >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *)
Where are these defined?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APSInt.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/BitVector.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 4 | ||||
-rw-r--r-- | include/llvm/DerivedTypes.h | 7 | ||||
-rw-r--r-- | include/llvm/InstrTypes.h | 7 | ||||
-rw-r--r-- | include/llvm/Instructions.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/Registry.h | 12 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/BasicInliner.h | 2 |
8 files changed, 21 insertions, 19 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index a04f842..f5b5114 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -25,7 +25,7 @@ class APSInt : public APInt { public: /// APSInt ctor - Create an APSInt with the specified width, default to /// unsigned. - explicit APSInt(unsigned BitWidth) : APInt(BitWidth, 0), IsUnsigned(true) {} + explicit APSInt(uint32_t BitWidth) : APInt(BitWidth, 0), IsUnsigned(true) {} APSInt(const APInt &I) : APInt(I), IsUnsigned(true) {} APSInt &operator=(const APSInt &RHS) { diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index 000cdd3..927cfa9 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -57,7 +57,7 @@ public: } operator bool() const { - return (*WordRef) & (1L << BitPos); + return ((*WordRef) & (1L << BitPos)) ? true : false; } }; diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 1fd32c9..80fbc80 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -64,7 +64,7 @@ public: //===----------------------------------------------------------------------===// // DomTreeNode - Dominator Tree Node template<class NodeT> class DominatorTreeBase; -class PostDominatorTree; +struct PostDominatorTree; class MachineBasicBlock; template <class NodeT> @@ -75,7 +75,7 @@ class DomTreeNodeBase { int DFSNumIn, DFSNumOut; template<class N> friend class DominatorTreeBase; - friend class PostDominatorTree; + friend struct PostDominatorTree; public: typedef typename std::vector<DomTreeNodeBase<NodeT> *>::iterator iterator; typedef typename std::vector<DomTreeNodeBase<NodeT> *>::const_iterator diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index ba35d78..1ae8cbd 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -263,7 +263,7 @@ public: return T->getTypeID() == StructTyID; } - bool isPacked() const { return getSubclassData(); } + bool isPacked() const { return (0 != getSubclassData()) ? true : false; } }; @@ -279,9 +279,12 @@ class SequentialType : public CompositeType { PATypeHandle ContainedType; ///< Storage for the single contained type SequentialType(const SequentialType &); // Do not implement! const SequentialType &operator=(const SequentialType &); // Do not implement! + + // avoiding warning: 'this' : used in base member initializer list + SequentialType* this_() { return this; } protected: SequentialType(TypeID TID, const Type *ElType) - : CompositeType(TID), ContainedType(ElType, this) { + : CompositeType(TID), ContainedType(ElType, this_()) { ContainedTys = &ContainedType; NumContainedTys = 1; } diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index f7644e3..22ad342 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -84,12 +84,15 @@ public: class UnaryInstruction : public Instruction { Use Op; + + // avoiding warning: 'this' : used in base member initializer list + UnaryInstruction* this_() { return this; } protected: UnaryInstruction(const Type *Ty, unsigned iType, Value *V, Instruction *IB =0) - : Instruction(Ty, iType, &Op, 1, IB), Op(V, this) { + : Instruction(Ty, iType, &Op, 1, IB), Op(V, this_()) { } UnaryInstruction(const Type *Ty, unsigned iType, Value *V, BasicBlock *IAE) - : Instruction(Ty, iType, &Op, 1, IAE), Op(V, this) { + : Instruction(Ty, iType, &Op, 1, IAE), Op(V, this_()) { } public: // Out of line virtual method, so the vtable, etc has a home. diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index ec03030..a4fcb82 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -256,7 +256,7 @@ public: /// setVolatile - Specify whether this is a volatile load or not. /// void setVolatile(bool V) { - SubclassData = (SubclassData & ~1) | V; + SubclassData = (SubclassData & ~1) | (V ? 1 : 0); } virtual LoadInst *clone() const; @@ -324,7 +324,7 @@ public: /// setVolatile - Specify whether this is a volatile load or not. /// void setVolatile(bool V) { - SubclassData = (SubclassData & ~1) | V; + SubclassData = (SubclassData & ~1) | (V ? 1 : 0); } /// Transparently provide more efficient getOperand methods. diff --git a/include/llvm/Support/Registry.h b/include/llvm/Support/Registry.h index 6f11ef1..7488773 100644 --- a/include/llvm/Support/Registry.h +++ b/include/llvm/Support/Registry.h @@ -67,7 +67,10 @@ namespace llvm { private: Registry(); // Do not implement. - static void Announce(node *); + static void Announce(const entry &E) { + for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next) + Cur->registered(E); + } friend class node; static node *Head, *Tail; @@ -229,13 +232,6 @@ namespace llvm { } }; - - private: - static void Announce(const entry &E) { - for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next) - Cur->registered(E); - } - }; } diff --git a/include/llvm/Transforms/Utils/BasicInliner.h b/include/llvm/Transforms/Utils/BasicInliner.h index 311047c..a549ccf 100644 --- a/include/llvm/Transforms/Utils/BasicInliner.h +++ b/include/llvm/Transforms/Utils/BasicInliner.h @@ -21,7 +21,7 @@ namespace llvm { class Function; class TargetData; - class BasicInlinerImpl; + struct BasicInlinerImpl; /// BasicInliner - BasicInliner provides function level inlining interface. /// Clients provide list of functions which are inline without using |