aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-11-12 21:49:55 +0000
committerDavid Greene <greened@obbligato.org>2009-11-12 21:49:55 +0000
commitb3bc115a2414a922caa40d5536d8a35ca54e40e3 (patch)
tree222f916f19fe85548af4669e1bb007e2ad810a54
parent89fccca4b01f148a7244f47e5a484cd793a1c30b (diff)
Do some cleanups suggested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87034 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/PseudoSourceValue.h7
-rw-r--r--lib/CodeGen/PseudoSourceValue.cpp4
2 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/PseudoSourceValue.h b/include/llvm/CodeGen/PseudoSourceValue.h
index 1a1dde9d55..7b3b0381f7 100644
--- a/include/llvm/CodeGen/PseudoSourceValue.h
+++ b/include/llvm/CodeGen/PseudoSourceValue.h
@@ -15,7 +15,6 @@
#define LLVM_CODEGEN_PSEUDOSOURCEVALUE_H
#include "llvm/Value.h"
-#include "llvm/Support/raw_ostream.h"
namespace llvm {
class MachineFrameInfo;
@@ -103,11 +102,9 @@ namespace llvm {
virtual bool mayAlias(const MachineFrameInfo *) const;
- virtual void printCustom(raw_ostream &OS) const {
- OS << "FixedStack" << FI;
- }
+ virtual void printCustom(raw_ostream &OS) const;
- int getFrameIndex(void) const { return FI; }
+ int getFrameIndex() const { return FI; }
};
} // End llvm namespace
diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp
index e95f017fc3..7fb3e6e6d2 100644
--- a/lib/CodeGen/PseudoSourceValue.cpp
+++ b/lib/CodeGen/PseudoSourceValue.cpp
@@ -109,3 +109,7 @@ bool FixedStackPseudoSourceValue::mayAlias(const MachineFrameInfo *MFI) const {
// Spill slots will not alias any LLVM IR value.
return !MFI->isSpillSlotObjectIndex(FI);
}
+
+void FixedStackPseudoSourceValue::printCustom(raw_ostream &OS) const {
+ OS << "FixedStack" << FI;
+}