[llvm-commits] CVS: llvm/include/llvm/GlobalVariable.h
Chris Lattner
sabre at nondot.org
Sat Sep 30 14:31:43 PDT 2006
Changes in directory llvm/include/llvm:
GlobalVariable.h updated: 1.36 -> 1.37
---
Log message:
Add a version of the globalvariable ctor that inserts at a specific location.
---
Diffs of the changes: (+6 -2)
GlobalVariable.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.36 llvm/include/llvm/GlobalVariable.h:1.37
--- llvm/include/llvm/GlobalVariable.h:1.36 Fri Dec 16 18:19:22 2005
+++ llvm/include/llvm/GlobalVariable.h Sat Sep 30 16:31:26 2006
@@ -49,11 +49,15 @@
public:
/// GlobalVariable ctor - If a parent module is specified, the global is
/// automatically inserted into the end of the specified modules global list.
- ///
GlobalVariable(const Type *Ty, bool isConstant, LinkageTypes Linkage,
Constant *Initializer = 0, const std::string &Name = "",
Module *Parent = 0);
-
+ /// GlobalVariable ctor - This creates a global and inserts it before the
+ /// specified other global.
+ GlobalVariable(const Type *Ty, bool isConstant, LinkageTypes Linkage,
+ Constant *Initializer, const std::string &Name,
+ GlobalVariable *InsertBefore);
+
/// isExternal - Is this global variable lacking an initializer? If so, the
/// global variable is defined in some other translation unit, and is thus
/// externally defined here.
More information about the llvm-commits
mailing list