summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/ConstantPools.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2017-05-22 08:49:28 +0000
committerJames Molloy <james.molloy@arm.com>2017-05-22 08:49:28 +0000
commit5cc75ae8f9139760083a5dce92568c9916b39557 (patch)
tree6e2a6b80cdeec538d4bd8035d7475645ffa9d59b /llvm/lib/MC/ConstantPools.cpp
parent5a9cf2e22d9d88bb550caf664db296bbbd6c6279 (diff)
downloadbcm5719-llvm-5cc75ae8f9139760083a5dce92568c9916b39557.tar.gz
bcm5719-llvm-5cc75ae8f9139760083a5dce92568c9916b39557.zip
Revert "[ARM] Clear the constant pool cache on explicit .ltorg directives"
This reverts commit r302416. This was a fixup for r286006, which has now been reverted so this doesn't apply (either in concept or in code). This commit itself has no problems, but the underlying issue it was fixing has now disappeared from the codebase. llvm-svn: 303536
Diffstat (limited to 'llvm/lib/MC/ConstantPools.cpp')
-rw-r--r--llvm/lib/MC/ConstantPools.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/MC/ConstantPools.cpp b/llvm/lib/MC/ConstantPools.cpp
index a217b23207b..1763d099115 100644
--- a/llvm/lib/MC/ConstantPools.cpp
+++ b/llvm/lib/MC/ConstantPools.cpp
@@ -47,10 +47,6 @@ const MCExpr *ConstantPool::addEntry(const MCExpr *Value, MCContext &Context,
bool ConstantPool::empty() { return Entries.empty(); }
-void ConstantPool::clearCache() {
- CachedEntries.clear();
-}
-
//
// AssemblerConstantPools implementation
//
@@ -92,13 +88,6 @@ void AssemblerConstantPools::emitForCurrentSection(MCStreamer &Streamer) {
}
}
-void AssemblerConstantPools::clearCacheForCurrentSection(MCStreamer &Streamer) {
- MCSection *Section = Streamer.getCurrentSectionOnly();
- if (ConstantPool *CP = getConstantPool(Section)) {
- CP->clearCache();
- }
-}
-
const MCExpr *AssemblerConstantPools::addEntry(MCStreamer &Streamer,
const MCExpr *Expr,
unsigned Size, SMLoc Loc) {
OpenPOWER on IntegriCloud