diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-07-22 20:15:21 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-07-22 20:15:21 +0000 |
| commit | c02a0aabb570b4451041dc22bdab5488ea9b6b99 (patch) | |
| tree | 99a493664544a07fc9bff4a5e0ab14039c82e199 /llvm/test/DebugInfo | |
| parent | 40315fea3c99c6726a9d9bf128f84fc520b5c976 (diff) | |
| download | bcm5719-llvm-c02a0aabb570b4451041dc22bdab5488ea9b6b99.tar.gz bcm5719-llvm-c02a0aabb570b4451041dc22bdab5488ea9b6b99.zip | |
Recommit r186217 with testcase fix:
Use the function attributes to pass along the stack protector buffer size.
Now that we have robust function attributes, don't use a command line option to
specify the stack protecto buffer size.
llvm-svn: 186863
Diffstat (limited to 'llvm/test/DebugInfo')
| -rw-r--r-- | llvm/test/DebugInfo/X86/dbg_value_direct.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg_value_direct.ll b/llvm/test/DebugInfo/X86/dbg_value_direct.ll index f095ece2e0d..9a40d59b772 100644 --- a/llvm/test/DebugInfo/X86/dbg_value_direct.ll +++ b/llvm/test/DebugInfo/X86/dbg_value_direct.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -O0 -stack-protector-buffer-size=1 < %s +; RUN: llc -filetype=obj -O0 < %s ; Test that we handle DBG_VALUEs in a register without crashing. ; ; Generated from clang with -fsanitize=address: @@ -23,7 +23,7 @@ target triple = "x86_64-unknown-linux-gnu" @__asan_gen_ = private unnamed_addr constant [16 x i8] c"1 32 4 5 .addr \00", align 1 ; Function Attrs: sanitize_address uwtable -define void @_Z4funci(%struct.A* noalias sret %agg.result, i32) #0 { +define void @_Z4funci(%struct.A* noalias sret %agg.result, i32) #0 "stack-protector-buffer-size"="1" { entry: %MyAlloca = alloca [96 x i8], align 32 %1 = ptrtoint [96 x i8]* %MyAlloca to i64 @@ -89,7 +89,7 @@ declare void @llvm.dbg.declare(metadata, metadata) #1 declare void @_ZN1AC1Ev(%struct.A*) #2 -define internal void @asan.module_ctor() { +define internal void @asan.module_ctor() "stack-protector-buffer-size"="1" { call void @__asan_init_v3() %1 = load volatile i64* @__asan_mapping_offset %2 = load volatile i64* @__asan_mapping_scale |

