[llvm-commits] CVS: llvm/include/llvm/GlobalValue.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 15 15:20:33 PST 2004
Changes in directory llvm/include/llvm:
GlobalValue.h updated: 1.19 -> 1.20
---
Log message:
Add an accessor
---
Diffs of the changes: (+9 -2)
Index: llvm/include/llvm/GlobalValue.h
diff -u llvm/include/llvm/GlobalValue.h:1.19 llvm/include/llvm/GlobalValue.h:1.20
--- llvm/include/llvm/GlobalValue.h:1.19 Sun Nov 14 15:02:28 2004
+++ llvm/include/llvm/GlobalValue.h Mon Nov 15 17:20:19 2004
@@ -67,8 +67,15 @@
void setLinkage(LinkageTypes LT) { Linkage = LT; }
LinkageTypes getLinkage() const { return Linkage; }
- /// Override from Constant class. No GlobalValue's have null values so
- /// this always returns false.
+ /// hasNotBeenReadFromBytecode - If a module provider is being used to lazily
+ /// stream in functions from disk, this method can be used to check to see if
+ /// the function has been read in yet or not. Unless you are working on the
+ /// JIT or something else that streams stuff in lazily, you don't need to
+ /// worry about this.
+ bool hasNotBeenReadFromBytecode() const { return Linkage == GhostLinkage; }
+
+ /// Override from Constant class. No GlobalValue's are null values so this
+ /// always returns false.
virtual bool isNullValue() const { return false; }
/// Override from Constant class.
More information about the llvm-commits
mailing list