summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PseudoSourceValue.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-17 07:53:04 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-17 07:53:04 +0000
commit6553155172a2e74feff1253837daa608123de54a (patch)
tree2c2b81a5ab0d17f1a636036ce1f85458d65e2ac5 /lib/CodeGen/PseudoSourceValue.cpp
parentbf125583f8bd8196a34921276add7f304b7c1433 (diff)
downloadllvm-6553155172a2e74feff1253837daa608123de54a.tar.gz
llvm-6553155172a2e74feff1253837daa608123de54a.tar.bz2
llvm-6553155172a2e74feff1253837daa608123de54a.tar.xz
Revert 84315 for now. Re-thinking the patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r--lib/CodeGen/PseudoSourceValue.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp
index e74479e7a1..00c5d46d21 100644
--- a/lib/CodeGen/PseudoSourceValue.cpp
+++ b/lib/CodeGen/PseudoSourceValue.cpp
@@ -52,31 +52,29 @@ void PseudoSourceValue::printCustom(raw_ostream &O) const {
}
namespace {
- /// StackObjectPseudoSourceValue - A specialized PseudoSourceValue
- /// for holding StackObject values, which must include a frame
+ /// FixedStackPseudoSourceValue - A specialized PseudoSourceValue
+ /// for holding FixedStack values, which must include a frame
/// index.
- class VISIBILITY_HIDDEN StackObjectPseudoSourceValue
+ class VISIBILITY_HIDDEN FixedStackPseudoSourceValue
: public PseudoSourceValue {
const int FI;
public:
- explicit StackObjectPseudoSourceValue(int fi) : FI(fi) {}
+ explicit FixedStackPseudoSourceValue(int fi) : FI(fi) {}
virtual bool isConstant(const MachineFrameInfo *MFI) const;
virtual void printCustom(raw_ostream &OS) const {
- if (FI < 0)
- OS << "Fixed";
- OS << "StackObject" << FI;
+ OS << "FixedStack" << FI;
}
};
}
static ManagedStatic<std::map<int, const PseudoSourceValue *> > FSValues;
-const PseudoSourceValue *PseudoSourceValue::getStackObject(int FI) {
+const PseudoSourceValue *PseudoSourceValue::getFixedStack(int FI) {
const PseudoSourceValue *&V = (*FSValues)[FI];
if (!V)
- V = new StackObjectPseudoSourceValue(FI);
+ V = new FixedStackPseudoSourceValue(FI);
return V;
}
@@ -91,7 +89,6 @@ bool PseudoSourceValue::isConstant(const MachineFrameInfo *) const {
return false;
}
-bool
-StackObjectPseudoSourceValue::isConstant(const MachineFrameInfo *MFI) const {
+bool FixedStackPseudoSourceValue::isConstant(const MachineFrameInfo *MFI) const{
return MFI && MFI->isImmutableObjectIndex(FI);
}