From: David Blaikie Date: Fri, 29 Jan 2016 02:23:13 +0000 (+0000) Subject: Fix some -Wstring-conversion warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0b44ef6ff837de0631a269bfa7fb66303e8bb42;p=platform%2Fupstream%2Fllvm.git Fix some -Wstring-conversion warnings I don't seem to see these locally, maybe just need to update my compiler, or we haven't turned them on for LLVM's build and we should... llvm-svn: 259146 --- diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index 992edd0..95cf7cc 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -94,8 +94,8 @@ unsigned CodeViewContext::getStringTableOffset(StringRef S) { void CodeViewContext::emitStringTable(MCObjectStreamer &OS) { MCContext &Ctx = OS.getContext(); - MCSymbol *StringBegin = Ctx.createTempSymbol("strtab_begin"), - *StringEnd = Ctx.createTempSymbol("strtab_end"); + MCSymbol *StringBegin = Ctx.createTempSymbol("strtab_begin", false), + *StringEnd = Ctx.createTempSymbol("strtab_end", false); OS.EmitIntValue(unsigned(ModuleSubstreamKind::StringTable), 4); OS.emitAbsoluteSymbolDiff(StringEnd, StringBegin, 4); @@ -116,8 +116,8 @@ void CodeViewContext::emitStringTable(MCObjectStreamer &OS) { void CodeViewContext::emitFileChecksums(MCObjectStreamer &OS) { MCContext &Ctx = OS.getContext(); - MCSymbol *FileBegin = Ctx.createTempSymbol("filechecksums_begin"), - *FileEnd = Ctx.createTempSymbol("filechecksums_end"); + MCSymbol *FileBegin = Ctx.createTempSymbol("filechecksums_begin", false), + *FileEnd = Ctx.createTempSymbol("filechecksums_end", false); OS.EmitIntValue(unsigned(ModuleSubstreamKind::FileChecksums), 4); OS.emitAbsoluteSymbolDiff(FileEnd, FileBegin, 4); @@ -141,8 +141,8 @@ void CodeViewContext::emitLineTableForFunction(MCObjectStreamer &OS, const MCSymbol *FuncBegin, const MCSymbol *FuncEnd) { MCContext &Ctx = OS.getContext(); - MCSymbol *LineBegin = Ctx.createTempSymbol("linetable_begin"), - *LineEnd = Ctx.createTempSymbol("linetable_end"); + MCSymbol *LineBegin = Ctx.createTempSymbol("linetable_begin", false), + *LineEnd = Ctx.createTempSymbol("linetable_end", false); OS.EmitIntValue(unsigned(ModuleSubstreamKind::Lines), 4); OS.emitAbsoluteSymbolDiff(LineEnd, LineBegin, 4);