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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user