aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCNullStreamer.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-02-23 18:26:34 +0000
committerKevin Enderby <enderby@apple.com>2010-02-23 18:26:34 +0000
commitd767d4e96e8d664f5e13414822c23b5a977c77fb (patch)
tree00c107b21ab078d0f18c75447a14577af7de4cb4 /lib/MC/MCNullStreamer.cpp
parent4a9c23db9acaa1afd8d939b892d2a3decebacfeb (diff)
downloadexternal_llvm-d767d4e96e8d664f5e13414822c23b5a977c77fb.zip
external_llvm-d767d4e96e8d664f5e13414822c23b5a977c77fb.tar.gz
external_llvm-d767d4e96e8d664f5e13414822c23b5a977c77fb.tar.bz2
This is the first patch to put the needed bits in place to eventually allow code
to be aligned with optimal nops. This patch does not change any functionality and when the compiler is changed to use EmitCodeAlignment() it should also not change the resulting output. Once the compiler change is made and everything looks good the next patch with the table of optimal X86 nops will be added to WriteNopData() changing the output. There are many FIXMEs in this patch which will be removed when we have better target hooks (coming soon I hear). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCNullStreamer.cpp')
-rw-r--r--lib/MC/MCNullStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp
index 46e9ebf..ab61799 100644
--- a/lib/MC/MCNullStreamer.cpp
+++ b/lib/MC/MCNullStreamer.cpp
@@ -55,6 +55,9 @@ namespace {
unsigned ValueSize = 1,
unsigned MaxBytesToEmit = 0) {}
+ virtual void EmitCodeAlignment(unsigned ByteAlignment,
+ unsigned MaxBytesToEmit = 0) {}
+
virtual void EmitValueToOffset(const MCExpr *Offset,
unsigned char Value = 0) {}