From 512ff7353e9bc7af72921b7713a5c0bb53a889d6 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 1 Jul 2009 18:50:55 +0000 Subject: Update comments to make it clear that the function alignment is the Log2 of the bytes and not bytes. llvm-svn: 74624 --- llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 2 +- llvm/lib/Target/Alpha/AlphaISelLowering.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/Alpha') diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index b70c2aca578..7a8837cbb3c 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -181,7 +181,7 @@ const char *AlphaTargetLowering::getTargetNodeName(unsigned Opcode) const { } } -/// getFunctionAlignment - Return the function alignment. +/// getFunctionAlignment - Return the Log2 alignment of this function. unsigned AlphaTargetLowering::getFunctionAlignment(const Function *F) const { return 4; } diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.h b/llvm/lib/Target/Alpha/AlphaISelLowering.h index 1d6fad6bfa5..0a843c24e71 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.h +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.h @@ -103,7 +103,7 @@ namespace llvm { virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const; - /// getFunctionAlignment - Return the function alignment. + /// getFunctionAlignment - Return the Log2 alignment of this function. virtual unsigned getFunctionAlignment(const Function *F) const; private: -- cgit v1.2.3