summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Wen Voung <jvoung@google.com>2010-09-30 05:59:22 +0000
committerJan Wen Voung <jvoung@google.com>2010-09-30 05:59:22 +0000
commit186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66 (patch)
treedffdd5461c22f40aeb61afb3c80cef1ba8567648 /include
parent1b6285cd72c480cd39048539d03b240e3c47d195 (diff)
downloadllvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.tar.gz
llvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.tar.bz2
llvm-186e7a0fb1b2028e4fa9c3efe29d9433c91b3f66.tar.xz
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')
-rw-r--r--include/llvm/MC/MCSectionELF.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index 5de0bf58fe..f97ab16711 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