summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreISelLowering.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-06-30 22:38:32 +0000
committerBill Wendling <isanbard@gmail.com>2009-06-30 22:38:32 +0000
commit31ceb1bcba994e1774a5638f0b3819277a1c9211 (patch)
treec7e6872113a8598ea99667541a54704993cde0ac /llvm/lib/Target/XCore/XCoreISelLowering.cpp
parenta727cb98a46a1289ea8a9bfd5b1b1e802330edf6 (diff)
downloadbcm5719-llvm-31ceb1bcba994e1774a5638f0b3819277a1c9211.tar.gz
bcm5719-llvm-31ceb1bcba994e1774a5638f0b3819277a1c9211.zip
Add an "alignment" field to the MachineFunction object. It makes more sense to
have the alignment be calculated up front, and have the back-ends obey whatever alignment is decided upon. This allows for future work that would allow for precise no-op placement and the like. llvm-svn: 74564
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreISelLowering.cpp')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
index 93c5f59f642..0b65ceee60a 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
@@ -187,6 +187,12 @@ void XCoreTargetLowering::ReplaceNodeResults(SDNode *N,
}
}
+/// getFunctionAlignment - Return the alignment of this function.
+unsigned XCoreTargetLowering::
+getFunctionAlignment(const Function *) const {
+ return 1;
+}
+
//===----------------------------------------------------------------------===//
// Misc Lower Operation implementation
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud