aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ConstPoolVals.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ConstPoolVals.h')
-rw-r--r--include/llvm/ConstPoolVals.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/ConstPoolVals.h b/include/llvm/ConstPoolVals.h
index a2cd143..68dd0a3 100644
--- a/include/llvm/ConstPoolVals.h
+++ b/include/llvm/ConstPoolVals.h
@@ -227,26 +227,26 @@ public:
// ConstPoolPointerReference - a constant pointer value that is initialized to
-// point to a global value, which is a constant.
+// point to a global value, which lies at a constant, fixed address.
//
class ConstPoolPointerReference : public ConstPoolPointer {
ConstPoolPointerReference(const ConstPoolPointerReference &); // DNI!
protected:
- ConstPoolPointerReference(GlobalVariable *GV);
+ ConstPoolPointerReference(GlobalValue *GV);
~ConstPoolPointerReference() {}
public:
- static ConstPoolPointerReference *get(GlobalVariable *GV) {
+ static ConstPoolPointerReference *get(GlobalValue *GV) {
// FIXME: These should all be shared!
return new ConstPoolPointerReference(GV);
}
virtual string getStrValue() const;
- const GlobalVariable *getValue() const {
- return cast<GlobalVariable>(Operands[0].get());
+ const GlobalValue *getValue() const {
+ return cast<GlobalValue>(Operands[0].get());
}
- GlobalVariable *getValue() {
- return cast<GlobalVariable>(Operands[0].get());
+ GlobalValue *getValue() {
+ return cast<GlobalValue>(Operands[0].get());
}
};