Check for -fast here too.

llvm-svn: 65065
This commit is contained in:
Bill Wendling 2009-02-19 21:23:54 +00:00
parent 19e0a5b3c3
commit df78dcc0b2
1 changed files with 1 additions and 3 deletions

View File

@ -3953,9 +3953,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
// create a label if this is a beginning of inlined function.
unsigned Line = Subprogram.getLineNumber();
// FIXME: Support more than just -Os.
const Function *F = I.getParent()->getParent();
if (!F->hasFnAttr(Attribute::OptimizeForSize)) {
if (Fast) {
unsigned LabelID = DW->RecordSourceLine(Line, 0, SrcFile);
if (DW->getRecordSourceLineCount() != 1)
DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(),