diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-01-26 09:03:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-01-26 09:03:52 +0000 |
commit | b5880a79ef68017648c18e381aa9718f3db1bbf9 (patch) | |
tree | 789a28e4c73b4295b973ad9cd204ebd979058503 /test/CodeGen | |
parent | bbbade843ad1d883ddf01263e863705341a3f614 (diff) | |
download | external_llvm-b5880a79ef68017648c18e381aa9718f3db1bbf9.zip external_llvm-b5880a79ef68017648c18e381aa9718f3db1bbf9.tar.gz external_llvm-b5880a79ef68017648c18e381aa9718f3db1bbf9.tar.bz2 |
If there's no instructions being emitted on X86 for a function, emit a
nop. Emit the nop directly for PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/2008-01-25-EmptyFunction.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll new file mode 100644 index 0000000..7d738bc --- /dev/null +++ b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep nop + +define void @bork() noreturn nounwind { +entry: + unreachable +} |