From 786c5973f7777dadca85a4be6a312df23b3d3bc6 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 24 Feb 2009 02:35:30 +0000 Subject: - Use the "Fast" flag instead of "OptimizeForSize" to determine whether to emit a DBG_LABEL or not. We want to fall back to the original way of emitting debug info when we're in -O0/-fast mode. - Add plumbing in to pass the "Fast" flag to places that need it. - XFAIL DebugInfo/deaddebuglabel.ll. This is finding 11 labels instead of 8. I need to investigate still. llvm-svn: 65367 --- llvm/test/FrontendC++/2006-11-06-StackTrace.cpp | 3 ++- llvm/test/FrontendC++/2006-11-30-Pubnames.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/test/FrontendC++') diff --git a/llvm/test/FrontendC++/2006-11-06-StackTrace.cpp b/llvm/test/FrontendC++/2006-11-06-StackTrace.cpp index 55b34ad82d5..15c88df0d15 100644 --- a/llvm/test/FrontendC++/2006-11-06-StackTrace.cpp +++ b/llvm/test/FrontendC++/2006-11-06-StackTrace.cpp @@ -1,6 +1,7 @@ // This is a regression test on debug info to make sure that we can get a // meaningful stack trace from a C++ program. -// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-elim -o %t.s -f +// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \ +// RUN: llc --disable-fp-elim -o %t.s -f -fast -relocation-model=pic // RUN: %compile_c %t.s -o %t.o // RUN: %link %t.o -o %t.exe // RUN: echo {break DeepStack::deepest\nrun 17\nwhere\n} > %t.in diff --git a/llvm/test/FrontendC++/2006-11-30-Pubnames.cpp b/llvm/test/FrontendC++/2006-11-30-Pubnames.cpp index 8af99e37c98..b53d6aa734f 100644 --- a/llvm/test/FrontendC++/2006-11-30-Pubnames.cpp +++ b/llvm/test/FrontendC++/2006-11-30-Pubnames.cpp @@ -1,7 +1,7 @@ // This is a regression test on debug info to make sure that we can access // qualified global names. // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \ -// RUN: llc --disable-fp-elim -o %t.s -f +// RUN: llc --disable-fp-elim -o %t.s -f -fast // RUN: %compile_c %t.s -o %t.o // RUN: %link %t.o -o %t.exe // RUN: %llvmdsymutil %t.exe -- cgit v1.2.3