1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

MC: Fix inconsistant naming in COFF object writer. Patch by Cameron Esfahani.

llvm-svn: 112076
This commit is contained in:
Michael J. Spencer 2010-08-25 19:27:27 +00:00
parent 50dbbda454
commit 052ffacb48

View File

@ -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) {