diff options
| author | Devang Patel <dpatel@apple.com> | 2009-10-06 00:09:08 +0000 | 
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-10-06 00:09:08 +0000 | 
| commit | bb802206d27aec38c9fc5b92ad6a3f28eaa5b8d1 (patch) | |
| tree | 0fdf2516575b7a7e245e22b80fa81d3b5cd0e15e /llvm/lib/CodeGen | |
| parent | d859d86538277c5e584e2da2d2f157b6a9c697cc (diff) | |
| download | bcm5719-llvm-bb802206d27aec38c9fc5b92ad6a3f28eaa5b8d1.tar.gz bcm5719-llvm-bb802206d27aec38c9fc5b92ad6a3f28eaa5b8d1.zip | |
Set default location for the function if it is not already set.
This code is not  yet enabled.
llvm-svn: 83349
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8591da7621a..a232d82acd1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -747,6 +747,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,              DebugLoc Loc = ExtractDebugLocation(DILoc,                                                  MF.getDebugLocInfo());              FastIS->setCurDebugLoc(Loc); +            if (MF.getDefaultDebugLoc().isUnknown()) +              MF.setDefaultDebugLoc(Loc);            }          } | 

