summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAsmInfo.h
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-01-23 16:22:04 +0000
committerEli Bendersky <eliben@google.com>2013-01-23 16:22:04 +0000
commite752feee5228bfa33acee35ef9c606ce12f0f173 (patch)
treee8571c6d69fec1b824843f694eb37767d710a452 /include/llvm/MC/MCAsmInfo.h
parente735945ad74a4af9772a7d9bb45418b2551fffe9 (diff)
downloadllvm-e752feee5228bfa33acee35ef9c606ce12f0f173.tar.gz
llvm-e752feee5228bfa33acee35ef9c606ce12f0f173.tar.bz2
llvm-e752feee5228bfa33acee35ef9c606ce12f0f173.tar.xz
Clean up assignment of CalleeSaveStackSlotSize: get rid of the default and explicitly set this in every target that needs to change it from the default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r--include/llvm/MC/MCAsmInfo.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 7474ac8d0f..28256b3677 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -351,12 +351,7 @@ namespace llvm {
/// getCalleeSaveStackSlotSize - Get the callee-saved register stack slot
/// size in bytes.
unsigned getCalleeSaveStackSlotSize() const {
- // If a target doesn't explicitly initialize this member, PointerSize is
- // used by default.
- if (CalleeSaveStackSlotSize == 0)
- return PointerSize;
- else
- return CalleeSaveStackSlotSize;
+ return CalleeSaveStackSlotSize;
}
/// isLittleEndian - True if the target is little endian.