diff options
author | Jan Wen Voung <jvoung@google.com> | 2010-09-30 05:59:22 +0000 |
---|---|---|
committer | Jan Wen Voung <jvoung@google.com> | 2010-09-30 05:59:22 +0000 |
commit | 186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66 (patch) | |
tree | dffdd5461c22f40aeb61afb3c80cef1ba8567648 /include/llvm | |
parent | 1b6285cd72c480cd39048539d03b240e3c47d195 (diff) | |
download | external_llvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.zip external_llvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.tar.gz external_llvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.tar.bz2 |
Move logic of determining ELF entsize from the .s printer to initialization
time. That way, the EntrySize field is initialized for other code paths,
namely, the .ll -> .o code path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index 5de0bf5..f97ab16 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -189,6 +189,10 @@ public: return S->getVariant() == SV_ELF; } static bool classof(const MCSectionELF *) { return true; } + + // Return the entry size for sections with fixed-width data. + static unsigned DetermineEntrySize(SectionKind Kind); + }; } // end namespace llvm |