summaryrefslogtreecommitdiff
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
commit6e72048add2a6464e038121c6c275da37528aa0a (patch)
tree00c107b21ab078d0f18c75447a14577af7de4cb4 /lib/MC/MCNullStreamer.cpp
parent4ee2aa7eb29079eaf4cdefe533151200214a3a2c (diff)
downloadllvm-6e72048add2a6464e038121c6c275da37528aa0a.tar.gz
llvm-6e72048add2a6464e038121c6c275da37528aa0a.tar.bz2
llvm-6e72048add2a6464e038121c6c275da37528aa0a.tar.xz
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 46e9ebfa88..ab6179907e 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) {}