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 | 1540fd690f40c4771c411d89adeb142613064dbd (patch) | |
tree | 7c44f6f13b191d3b5df3df33620eaaf145dc2892 /lib/Analysis | |
parent | 5699210537324cd5c12b6a90240df2a168d947c6 (diff) | |
download | external_llvm-1540fd690f40c4771c411d89adeb142613064dbd.zip external_llvm-1540fd690f40c4771c411d89adeb142613064dbd.tar.gz external_llvm-1540fd690f40c4771c411d89adeb142613064dbd.tar.bz2 |
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')
-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 f537d55..9eecc33 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(); |