From 052ffacb48e6f8c81ed312a65b314ad2455a731e Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Wed, 25 Aug 2010 19:27:27 +0000 Subject: [PATCH] MC: Fix inconsistant naming in COFF object writer. Patch by Cameron Esfahani. llvm-svn: 112076 --- lib/MC/WinCOFFStreamer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index d3a58df81d1..8a194bff215 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -141,10 +141,11 @@ void WinCOFFStreamer::EmitLabel(MCSymbol *Symbol) { // fragment. Instead, we should mark the symbol as pointing into the data // fragment if it exists, otherwise we should just queue the label and set its // fragment pointer when we emit the next fragment. - MCDataFragment *F = getOrCreateDataFragment(); + MCDataFragment *DF = getOrCreateDataFragment(); + assert(!SD.getFragment() && "Unexpected fragment on symbol data!"); - SD.setFragment(F); - SD.setOffset(F->getContents().size()); + SD.setFragment(DF); + SD.setOffset(DF->getContents().size()); } void WinCOFFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {