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 | 824a721560f29eedb1427f81182e81cacf7e3ad4 (patch) | |
tree | 789a28e4c73b4295b973ad9cd204ebd979058503 /test | |
parent | c79348d8dc43345e5c232ca421ccff6a23d0e624 (diff) | |
download | external_llvm-824a721560f29eedb1427f81182e81cacf7e3ad4.zip external_llvm-824a721560f29eedb1427f81182e81cacf7e3ad4.tar.gz external_llvm-824a721560f29eedb1427f81182e81cacf7e3ad4.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')
-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 +} |