diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-04-27 01:07:52 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-04-27 01:07:52 +0000 |
| commit | 203e12bf9ef6ba54e9628cc8ad6bc6a678b5490d (patch) | |
| tree | fba4a66a25a8c638ae62f841b14f60a0c7f36f81 /llvm/test | |
| parent | b2a602d73093d8e7f54f2e145fbec7196b4a1bc1 (diff) | |
| download | bcm5719-llvm-203e12bf9ef6ba54e9628cc8ad6bc6a678b5490d.tar.gz bcm5719-llvm-203e12bf9ef6ba54e9628cc8ad6bc6a678b5490d.zip | |
Use the target triple from the target machine rather than the module
to determine whether or not we're on a darwin platform for debug code
emitting.
Solves the problem of a module with no triple on the command line
and no triple in the module using non-gdb ok features on darwin. Fix
up the member-pointers test to check the correct things for cross
platform (DW_FORM_flag is a good prefix).
Unfortunately no testcase because I have no ideas how to test something
without a triple and without a triple in the module yet check
precisely on two platforms. Ideas welcome.
llvm-svn: 180660
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/DebugInfo/member-pointers.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/member-pointers.ll b/llvm/test/DebugInfo/member-pointers.ll index a78aa629ec6..20f4e68e2aa 100644 --- a/llvm/test/DebugInfo/member-pointers.ll +++ b/llvm/test/DebugInfo/member-pointers.ll @@ -7,7 +7,7 @@ ; CHECK: [[TYPE:.*]]: DW_TAG_subroutine_type ; CHECK: DW_TAG_formal_parameter ; CHECK-NEXT: DW_AT_type -; CHECK-NEXT: DW_AT_artificial [DW_FORM_flag_present] +; CHECK-NEXT: DW_AT_artificial [DW_FORM_flag ; CHECK: DW_TAG_ptr_to_member_type ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) ; IR generated from clang -g with the following source: |

