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 | 87127712b973cd9622ebabdc2a36973beaa2804a (patch) | |
tree | 30bf18e94416b616ecf343d41ab53b584ad21799 /llvm/lib/Analysis | |
parent | cc64cc9313d7b6b559ac427e2861484112e11d04 (diff) | |
download | bcm5719-llvm-87127712b973cd9622ebabdc2a36973beaa2804a.tar.gz bcm5719-llvm-87127712b973cd9622ebabdc2a36973beaa2804a.zip |
Simplify debug info intrisinc lowering.
llvm-svn: 74733
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index f537d559273..9eecc339b48 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/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(); |