diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-02-19 21:23:54 +0000 | 
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-02-19 21:23:54 +0000 | 
| commit | df78dcc0b26bd07bcc0e012379d435176569f3ed (patch) | |
| tree | 1e8a954e1fa5a58df495c5c4504a2c68da6bbb76 | |
| parent | 19e0a5b3c3a5c2ff620ea06726c218ce6fe2bf23 (diff) | |
| download | bcm5719-llvm-df78dcc0b26bd07bcc0e012379d435176569f3ed.tar.gz bcm5719-llvm-df78dcc0b26bd07bcc0e012379d435176569f3ed.zip  | |
Check for -fast here too.
llvm-svn: 65065
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 205b7b9dff1..09e3bf6b3d2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -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(),  | 

