sink twine.h down out of Value.h. It is annoying that you need
authorChris Lattner <sabre@nondot.org>
Tue, 29 Dec 2009 07:12:03 +0000 (07:12 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Dec 2009 07:12:03 +0000 (07:12 +0000)
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

include/llvm/Argument.h
include/llvm/BasicBlock.h
include/llvm/GlobalAlias.h
include/llvm/GlobalValue.h
include/llvm/GlobalVariable.h
include/llvm/InstrTypes.h
include/llvm/Value.h

index ca54f48c36f386ac1ea15ef55e31071e8d0b3905..71c001fbe18d7a04f8e07c546113f0df6dcb41b3 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Value.h"
 #include "llvm/Attributes.h"
 #include "llvm/ADT/ilist_node.h"
+#include "llvm/ADT/Twine.h"
 
 namespace llvm {
 
index 1add14402ba1b17d72020e35b12b13faf3609e64..e358f91f90ad0bdc81682d691e2bb1eb073842d2 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Instruction.h"
 #include "llvm/SymbolTableListTraits.h"
 #include "llvm/ADT/ilist.h"
+#include "llvm/ADT/Twine.h"
 #include "llvm/System/DataTypes.h"
 
 namespace llvm {
index 9b3f4505697d4c2921383743762e1ac50a4ff891..9867c518c890ddc5b60845e6e24dafab42ed8d4a 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/GlobalValue.h"
 #include "llvm/OperandTraits.h"
 #include "llvm/ADT/ilist_node.h"
+#include "llvm/ADT/Twine.h"
 
 namespace llvm {
 
index b8d219c7266b6f9e115f7370d3c3fc2d76b749f5..9875a833100b79b8b2ec5b95fe61c1b562a0c04c 100644 (file)
@@ -56,7 +56,7 @@ public:
 
 protected:
   GlobalValue(const Type *ty, ValueTy vty, Use *Ops, unsigned NumOps,
-              LinkageTypes linkage, const Twine &Name = "")
+              LinkageTypes linkage, const Twine &Name)
     : Constant(ty, vty, Ops, NumOps), Parent(0),
       Linkage(linkage), Visibility(DefaultVisibility), Alignment(0) {
     setName(Name);
index 68bd1b3eab151777d9bb2259e2d03403eca7d234..633e8b4dc335af68b2d1188b50c68fb21ad007ee 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/GlobalValue.h"
 #include "llvm/OperandTraits.h"
 #include "llvm/ADT/ilist_node.h"
+#include "llvm/ADT/Twine.h"
 
 namespace llvm {
 
index ba0aeda71887b7b9060dbb7d4179cb9a45a7bf8e..85aaa7f0592a6fa66365c59b7812526d736299cd 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/OperandTraits.h"
 #include "llvm/Operator.h"
 #include "llvm/DerivedTypes.h"
+#include "llvm/ADT/Twine.h"
 
 namespace llvm {
 
@@ -160,7 +161,7 @@ public:
   /// Instruction is allowed to be a dereferenced end iterator.
   ///
   static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2,
-                                const Twine &Name = "",
+                                const Twine &Name = Twine(),
                                 Instruction *InsertBefore = 0);
 
   /// Create() - Construct a binary instruction, given the opcode and the two
index 975d660c216144867803fc17cd654e1ca87f0894..1be6ffd488218cc7f5bd8b39c5f76d2f30570a41 100644 (file)
@@ -17,7 +17,6 @@
 #include "llvm/AbstractTypeUser.h"
 #include "llvm/Use.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/ADT/Twine.h"
 #include "llvm/Support/Casting.h"
 #include <string>
 
@@ -43,6 +42,7 @@ class AssemblyAnnotationWriter;
 class ValueHandleBase;
 class LLVMContext;
 class MetadataContextImpl;
+class Twine;
 
 //===----------------------------------------------------------------------===//
 //                                 Value Class