diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-03-13 18:21:24 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-03-13 18:21:24 +0000 |
commit | 639f8ea39715fddcac97db525dbe68f85f295221 (patch) | |
tree | 48311aa6b021e225ee3c7b4c4281ee062b141a4b /llvm/lib/MC/MCContext.cpp | |
parent | 4269b9eed5f68832ecbf1b59e9ab07ce8ac38517 (diff) | |
download | bcm5719-llvm-639f8ea39715fddcac97db525dbe68f85f295221.tar.gz bcm5719-llvm-639f8ea39715fddcac97db525dbe68f85f295221.zip |
MCDwarf: Simply MCDwarfFile since it really is just a StringRef and unsigned.
llvm-svn: 203827
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 27f66d8393f..5ec5c35630c 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -391,7 +391,9 @@ unsigned MCContext::GetDwarfFile(StringRef Directory, StringRef FileName, // vector. char *Buf = static_cast<char *>(Allocate(FileName.size())); memcpy(Buf, FileName.data(), FileName.size()); - File = new (*this) MCDwarfFile(StringRef(Buf, FileName.size()), DirIndex); + File = new (*this) MCDwarfFile; + File->Name = StringRef(Buf, FileName.size()); + File->DirIndex = DirIndex; // return the allocated FileNumber. return FileNumber; |