aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCStreamer.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-15 15:43:14 +0000
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-15 15:43:14 +0000
commitf35c62bf025411393c7df0803851010cc0e597ba (patch)
tree623995ad707b3ea2c7e8eeace138d603d36a4a93 /include/llvm/MC/MCStreamer.h
parent2611eeda9839c6e60d0228fd9df78957c5199ecb (diff)
downloadexternal_llvm-f35c62bf025411393c7df0803851010cc0e597ba.zip
external_llvm-f35c62bf025411393c7df0803851010cc0e597ba.tar.gz
external_llvm-f35c62bf025411393c7df0803851010cc0e597ba.tar.bz2
PowerPC: add EmitTCEntry class for TOC creation
This patch replaces the EmitRawText by a EmitTCEntry class (specialized for each Streamer) in PowerPC64 TOC entry creation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r--include/llvm/MC/MCStreamer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 4469898..230d27e 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -554,6 +554,11 @@ namespace llvm {
virtual void EmitRegSave(const SmallVectorImpl<unsigned> &RegList,
bool isVector);
+ /// PPC-related methods.
+ /// FIXME: Eventually replace it with some "target MC streamer" and move
+ /// these methods there.
+ virtual void EmitTCEntry(const MCSymbol &S);
+
/// FinishImpl - Streamer specific finalization.
virtual void FinishImpl() = 0;
/// Finish - Finish emission of machine code.