mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
MC: Fix inconsistant naming in COFF object writer. Patch by Cameron Esfahani.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112076 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f78ee6316b
commit
bf252bef67
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user