diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2017-07-29 16:07:28 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2017-07-29 16:07:28 +0000 |
commit | 1d9b4f0d13ad61ea6dcf4b826ae481d1cc45b207 (patch) | |
tree | 84b08798e722a44304b3c647fa2c2023a124f5a0 /gnu/llvm | |
parent | 48667d3aa002d8baec0da9a95a6d1c9acca8e486 (diff) |
Fix trapsleds on i386
ok deraadt@
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gnu/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/gnu/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp index 250afed034f..d18fc252f8b 100644 --- a/gnu/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp +++ b/gnu/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp @@ -326,15 +326,6 @@ void X86AsmBackend::relaxInstruction(const MCInst &Inst, /// \return - true on success, false on failure bool X86AsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const { - // This CPU doesn't support long nops. If needed add more. - // FIXME: Can we get this from the subtarget somehow? - // FIXME: We could generated something better than plain 0x90. - if (!HasNopl) { - for (uint64_t i = 0; i < Count; ++i) - OW->write8(0x90); - return true; - } - // Write 1 or 2 byte NOP sequences, or a longer trapsled, until // we have written Count bytes do { |