summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-14 20:36:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-14 20:36:44 +0000
commite76b446c054711c3138d21f20bce91567b26db85 (patch)
treeda6ef0721a8e63be8e9c3d65e7b1978e6edab244
parent312104a716a40ea3bff7048b3141ab27f953eef3 (diff)
downloadbcm5719-llvm-e76b446c054711c3138d21f20bce91567b26db85.tar.gz
bcm5719-llvm-e76b446c054711c3138d21f20bce91567b26db85.zip
MCDwarf: Initialize MCLineTableHeader::Label
This sometimes remains null into MCLineTableHeader::Emit where we conditionally construct a label if one isn't provided for us. We need it to remain null (rather than just always constructing the label) so we can identify unused line tables... which is a bit weird and maybe we can do away with that logic one day (& on that day we can always construct the label up-front and just have compilation units query the line table for its label, etc) llvm-svn: 203967
-rw-r--r--llvm/include/llvm/MC/MCDwarf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCDwarf.h b/llvm/include/llvm/MC/MCDwarf.h
index 2a878c5b1b2..abd2f7a2d69 100644
--- a/llvm/include/llvm/MC/MCDwarf.h
+++ b/llvm/include/llvm/MC/MCDwarf.h
@@ -179,6 +179,7 @@ struct MCDwarfLineTableHeader {
MCSymbol *Label;
SmallVector<std::string, 3> MCDwarfDirs;
SmallVector<MCDwarfFile, 3> MCDwarfFiles;
+ MCDwarfLineTableHeader() : Label(nullptr) {}
unsigned getFile(StringRef Directory, StringRef FileName, unsigned FileNumber);
std::pair<MCSymbol *, MCSymbol *> Emit(MCStreamer *MCOS) const;
};
OpenPOWER on IntegriCloud