diff options
author | Kevin Enderby <enderby@apple.com> | 2011-11-01 22:27:22 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2011-11-01 22:27:22 +0000 |
commit | 613b7576896fbd03fe495f4ee27b404f81386774 (patch) | |
tree | 2650c11c10a570a3683afe918366e5c93b246529 /lib/MC/MCContext.cpp | |
parent | 60cb643f7561e5be7a3b5fe705535e96de72cbf5 (diff) |
First part of support for generating dwarf for assembly source files with the
-g flag. In this part we generate the .file for the source being assembled and
the .loc's for the assembled instructions.
The next part will be to generate the dwarf Compile Unit DIE and a dwarf
subprogram DIE for each non-temporary label.
Once the next part is done test cases will be added. rdar://9275556
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r-- | lib/MC/MCContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 9e28b8f41c..814726ebd8 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -43,6 +43,8 @@ MCContext::MCContext(const MCAsmInfo &mai, const MCRegisterInfo &mri, SecureLogUsed = false; DwarfLocSeen = false; + GenDwarfForAssembly = false; + GenDwarfFileNumber = 0; } MCContext::~MCContext() { |