diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-02 20:24:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-02 20:24:22 +0000 |
commit | 49cb9b88867426d1a430f248550d3cc785a68fe4 (patch) | |
tree | a60af1ce1746ebb5936a94235f418974b0895cba /test/CodeGen/X86/pr10420.ll | |
parent | 6cdc1f43e6a6dd7ba38a334b0b2f8fa70d4dc4cd (diff) | |
download | llvm-49cb9b88867426d1a430f248550d3cc785a68fe4.tar.gz llvm-49cb9b88867426d1a430f248550d3cc785a68fe4.tar.bz2 llvm-49cb9b88867426d1a430f248550d3cc785a68fe4.tar.xz |
Assume .cfi_startproc is the first thing in a function. If the function is
externally visable, create a local symbol to use in the CFE. If not, use the
function label itself.
Fixes PR10420.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pr10420.ll')
-rw-r--r-- | test/CodeGen/X86/pr10420.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr10420.ll b/test/CodeGen/X86/pr10420.ll new file mode 100644 index 0000000000..3993f24954 --- /dev/null +++ b/test/CodeGen/X86/pr10420.ll @@ -0,0 +1,21 @@ +; RUN: llc < %s -mtriple=x86_64-apple-macosx -disable-cfi | FileCheck %s + +define private void @foo() { + ret void +} + +define void @bar() { + call void @foo() + ret void; +} + +; CHECK: _bar: ## @bar +; CHECK-NEXT: Ltmp2: + +; CHECK: Ltmp12: +; CHECK-NEXT: Ltmp13 = L_foo-Ltmp12 ## FDE initial location +; CHECK-NEXT: .quad Ltmp13 + +; CHECK: Ltmp19: +; CHECK-NEXT: Ltmp20 = Ltmp2-Ltmp19 ## FDE initial location +; CHECK-NEXT: .quad Ltmp20 |