[llvm] r259146 - Fix some -Wstring-conversion warnings

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 18:23:13 PST 2016


Author: dblaikie
Date: Thu Jan 28 20:23:13 2016
New Revision: 259146

URL: http://llvm.org/viewvc/llvm-project?rev=259146&view=rev
Log:
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...

Modified:
    llvm/trunk/lib/MC/MCCodeView.cpp

Modified: llvm/trunk/lib/MC/MCCodeView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCCodeView.cpp?rev=259146&r1=259145&r2=259146&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCCodeView.cpp (original)
+++ llvm/trunk/lib/MC/MCCodeView.cpp Thu Jan 28 20:23:13 2016
@@ -94,8 +94,8 @@ unsigned CodeViewContext::getStringTable
 
 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(MC
 
 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::emitLineTableForFu
                                                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);




More information about the llvm-commits mailing list