Follow Chris' suggestion; change the PseudoSourceValue accessors

to return pointers instead of references, since this is always what
is needed.

llvm-svn: 46857
This commit is contained in:
Dan Gohman
2008-02-07 18:41:25 +00:00
parent 0f166de892
commit 16d4bc3dc0
6 changed files with 44 additions and 44 deletions

View File

@@ -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",