summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitefbdbe5565edd457cc39b9317e9ba677bf6b2f6c (patch)
tree8b83a3eefc642393ced04e55af765d096e8b4672 /llvm/include
parent9d98ac645e32a304f429a8aa39f0e5db8417b95a (diff)
downloadbcm5719-llvm-efbdbe5565edd457cc39b9317e9ba677bf6b2f6c.tar.gz
bcm5719-llvm-efbdbe5565edd457cc39b9317e9ba677bf6b2f6c.zip
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. llvm-svn: 115141
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCSectionELF.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCSectionELF.h b/llvm/include/llvm/MC/MCSectionELF.h
index 5de0bf58fe0..f97ab167118 100644
--- a/llvm/include/llvm/MC/MCSectionELF.h
+++ b/llvm/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
OpenPOWER on IntegriCloud