summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-03-26 09:50:36 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-03-26 09:50:36 +0000
commit8499a12259e9d827c7f6fad554e1f5c6ccac58bb (patch)
tree4eb52d2df2ef4a082770e012c16b2ae81576cfb3 /llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h
parente32ef937ebe4126693875f594e877a08952427e1 (diff)
downloadbcm5719-llvm-8499a12259e9d827c7f6fad554e1f5c6ccac58bb.tar.gz
bcm5719-llvm-8499a12259e9d827c7f6fad554e1f5c6ccac58bb.zip
Fix PR19239 - Add support for generating debug info for functions without lexical scopes and/or debug info at all
llvm-svn: 204790
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h
index 1f34c987cf3..a7a62053c3e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h
+++ b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.h
@@ -32,13 +32,13 @@ namespace llvm {
class WinCodeViewLineTables : public AsmPrinterHandler {
AsmPrinter *Asm;
DebugLoc PrevInstLoc;
- LexicalScopes LScopes;
// For each function, store a vector of labels to its instructions, as well as
// to the end of the function.
struct FunctionInfo {
SmallVector<MCSymbol *, 10> Instrs;
MCSymbol *End;
+ FunctionInfo() : End(0) {}
} *CurFn;
typedef DenseMap<const Function *, FunctionInfo> FnDebugInfoTy;
OpenPOWER on IntegriCloud