llvm.org GIT mirror llvm / 5a96f93
sink twine.h down out of Value.h. It is annoying that you need to #include Twine.h just to give a twine a default value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92247 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
7 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1616 #include "llvm/Value.h"
1717 #include "llvm/Attributes.h"
1818 #include "llvm/ADT/ilist_node.h"
19 #include "llvm/ADT/Twine.h"
1920
2021 namespace llvm {
2122
1616 #include "llvm/Instruction.h"
1717 #include "llvm/SymbolTableListTraits.h"
1818 #include "llvm/ADT/ilist.h"
19 #include "llvm/ADT/Twine.h"
1920 #include "llvm/System/DataTypes.h"
2021
2122 namespace llvm {
1717 #include "llvm/GlobalValue.h"
1818 #include "llvm/OperandTraits.h"
1919 #include "llvm/ADT/ilist_node.h"
20 #include "llvm/ADT/Twine.h"
2021
2122 namespace llvm {
2223
5555
5656 protected:
5757 GlobalValue(const Type *ty, ValueTy vty, Use *Ops, unsigned NumOps,
58 LinkageTypes linkage, const Twine &Name = "")
58 LinkageTypes linkage, const Twine &Name)
5959 : Constant(ty, vty, Ops, NumOps), Parent(0),
6060 Linkage(linkage), Visibility(DefaultVisibility), Alignment(0) {
6161 setName(Name);
2222 #include "llvm/GlobalValue.h"
2323 #include "llvm/OperandTraits.h"
2424 #include "llvm/ADT/ilist_node.h"
25 #include "llvm/ADT/Twine.h"
2526
2627 namespace llvm {
2728
1919 #include "llvm/OperandTraits.h"
2020 #include "llvm/Operator.h"
2121 #include "llvm/DerivedTypes.h"
22 #include "llvm/ADT/Twine.h"
2223
2324 namespace llvm {
2425
159160 /// Instruction is allowed to be a dereferenced end iterator.
160161 ///
161162 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2,
162 const Twine &Name = "",
163 const Twine &Name = Twine(),
163164 Instruction *InsertBefore = 0);
164165
165166 /// Create() - Construct a binary instruction, given the opcode and the two
1616 #include "llvm/AbstractTypeUser.h"
1717 #include "llvm/Use.h"
1818 #include "llvm/ADT/StringRef.h"
19 #include "llvm/ADT/Twine.h"
2019 #include "llvm/Support/Casting.h"
2120 #include
2221
4241 class ValueHandleBase;
4342 class LLVMContext;
4443 class MetadataContextImpl;
44 class Twine;
4545
4646 //===----------------------------------------------------------------------===//
4747 // Value Class