diff options
author | Hans Wennborg <hans@hanshq.net> | 2017-04-21 21:48:41 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2017-04-21 21:48:41 +0000 |
commit | 9b9a5358dd35d63f83a54256aaf44e0c3cffdde2 (patch) | |
tree | 28c4dbdc7d5f57afa287534e4878890cdb5b8a13 /llvm/lib/Target/ARM/Thumb2InstrInfo.h | |
parent | 5b0887025bbc3ded0a4a65adc34d7a07f76b6c77 (diff) | |
download | bcm5719-llvm-9b9a5358dd35d63f83a54256aaf44e0c3cffdde2.tar.gz bcm5719-llvm-9b9a5358dd35d63f83a54256aaf44e0c3cffdde2.zip |
Re-commit r301040 "X86: Don't emit zero-byte functions on Windows"
In addition to the original commit, tighten the condition for when to
pad empty functions to COFF Windows. This avoids running into problems
when targeting e.g. Win32 AMDGPU, which caused test failures when this
was committed initially.
llvm-svn: 301047
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb2InstrInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2InstrInfo.h b/llvm/lib/Target/ARM/Thumb2InstrInfo.h index 15d63300b6a..c834ba73bfe 100644 --- a/llvm/lib/Target/ARM/Thumb2InstrInfo.h +++ b/llvm/lib/Target/ARM/Thumb2InstrInfo.h @@ -26,8 +26,8 @@ class Thumb2InstrInfo : public ARMBaseInstrInfo { public: explicit Thumb2InstrInfo(const ARMSubtarget &STI); - /// getNoopForMachoTarget - Return the noop instruction to use for a noop. - void getNoopForMachoTarget(MCInst &NopInst) const override; + /// Return the noop instruction to use for a noop. + void getNoop(MCInst &NopInst) const override; // Return the non-pre/post incrementing version of 'Opc'. Return 0 // if there is not such an opcode. |