diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-07 18:41:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-07 18:41:25 +0000 |
commit | 16d4bc3dc0bb78e57ea23e80457836f58abde34d (patch) | |
tree | 23fe089b4083a8580afbeb83f7ca673ca4ee3c74 /llvm/lib/CodeGen/PseudoSourceValue.cpp | |
parent | 0f166de892ac9b53c4dd27dcbadea236cc2fe899 (diff) | |
download | bcm5719-llvm-16d4bc3dc0bb78e57ea23e80457836f58abde34d.tar.gz bcm5719-llvm-16d4bc3dc0bb78e57ea23e80457836f58abde34d.zip |
Follow Chris' suggestion; change the PseudoSourceValue accessors
to return pointers instead of references, since this is always what
is needed.
llvm-svn: 46857
Diffstat (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PseudoSourceValue.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp index b7fb25e4f10..e1eb4e01a29 100644 --- a/llvm/lib/CodeGen/PseudoSourceValue.cpp +++ b/llvm/lib/CodeGen/PseudoSourceValue.cpp @@ -18,11 +18,11 @@ namespace llvm { static ManagedStatic<PseudoSourceValue[5]> PSVs; - const PseudoSourceValue &PseudoSourceValue::getFixedStack() { return (*PSVs)[0]; } - const PseudoSourceValue &PseudoSourceValue::getStack() { return (*PSVs)[1]; } - const PseudoSourceValue &PseudoSourceValue::getGOT() { return (*PSVs)[2]; } - const PseudoSourceValue &PseudoSourceValue::getConstantPool() { return (*PSVs)[3]; } - const PseudoSourceValue &PseudoSourceValue::getJumpTable() { return (*PSVs)[4]; } + const PseudoSourceValue *PseudoSourceValue::getFixedStack() { return &(*PSVs)[0]; } + const PseudoSourceValue *PseudoSourceValue::getStack() { return &(*PSVs)[1]; } + const PseudoSourceValue *PseudoSourceValue::getGOT() { return &(*PSVs)[2]; } + const PseudoSourceValue *PseudoSourceValue::getConstantPool() { return &(*PSVs)[3]; } + const PseudoSourceValue *PseudoSourceValue::getJumpTable() { return &(*PSVs)[4]; } static const char *PSVNames[] = { "FixedStack", |