aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetAsmBackend.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-23 02:36:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-23 02:36:58 +0000
commit8f9b80e5df12779a56d763ebf20864dad2bc72da (patch)
treea1843332964b99c6d06bf5677c33203f9babd3c7 /include/llvm/Target/TargetAsmBackend.h
parent829680048cdfea7498587a03f815915f1c0e1965 (diff)
downloadexternal_llvm-8f9b80e5df12779a56d763ebf20864dad2bc72da.tar.gz
external_llvm-8f9b80e5df12779a56d763ebf20864dad2bc72da.tar.bz2
external_llvm-8f9b80e5df12779a56d763ebf20864dad2bc72da.zip
MC: Add TargetAsmBackend::WriteNopData and use to eliminate some target dependencies in MCMachOStreamer and MCAssembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmBackend.h')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index 1c55393018..16f33c32f4 100644
--- a/include/llvm/Target/TargetAsmBackend.h
+++ b/include/llvm/Target/TargetAsmBackend.h
@@ -102,6 +102,13 @@ public:
/// wider instruction.
virtual void RelaxInstruction(const MCInstFragment *IF,
MCInst &Res) const = 0;
+
+ /// WriteNopData - Write an (optimal) nop sequence of Count bytes to the given
+ /// output. If the target cannot generate such a sequence, it should return an
+ /// error.
+ ///
+ /// \return - True on success.
+ virtual bool WriteNopData(uint64_t Count, MCObjectWriter *OW) const = 0;
};
} // End llvm namespace