diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-02 22:43:26 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-02 22:43:26 +0000 |
commit | 7e1e31f467d87c834d8baf673929865907901313 (patch) | |
tree | 7c44f6f13b191d3b5df3df33620eaaf145dc2892 /lib/Analysis/DebugInfo.cpp | |
parent | 2f510aed9cbd24dca1fdc5aabe27325e5ade9e1a (diff) |
Simplify debug info intrisinc lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index f537d55927..9eecc339b4 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -1091,12 +1091,9 @@ namespace llvm { /// ExtractDebugLocation - Extract debug location information /// from llvm.dbg.stoppoint intrinsic. DebugLoc ExtractDebugLocation(DbgStopPointInst &SPI, - CodeGenOpt::Level OptLev, DebugLocTracker &DebugLocInfo) { DebugLoc DL; Value *Context = SPI.getContext(); - if (DIDescriptor::ValidDebugInfo(Context, OptLev) == false) - return DL; // If this location is already tracked then use it. DebugLocTuple Tuple(cast<GlobalVariable>(Context), SPI.getLine(), @@ -1117,12 +1114,9 @@ namespace llvm { /// ExtractDebugLocation - Extract debug location information /// from llvm.dbg.func_start intrinsic. DebugLoc ExtractDebugLocation(DbgFuncStartInst &FSI, - CodeGenOpt::Level OptLev, DebugLocTracker &DebugLocInfo) { DebugLoc DL; Value *SP = FSI.getSubprogram(); - if (DIDescriptor::ValidDebugInfo(SP, OptLev) == false) - return DL; DISubprogram Subprogram(cast<GlobalVariable>(SP)); unsigned Line = Subprogram.getLineNumber(); |