mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Tidy up. MCAsmBackend naming conventions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -172,7 +172,7 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst) {
|
||||
MCLineEntry::Make(this, getCurrentSection());
|
||||
|
||||
// If this instruction doesn't need relaxation, just emit it as data.
|
||||
if (!getAssembler().getBackend().MayNeedRelaxation(Inst)) {
|
||||
if (!getAssembler().getBackend().mayNeedRelaxation(Inst)) {
|
||||
EmitInstToData(Inst);
|
||||
return;
|
||||
}
|
||||
@@ -181,9 +181,9 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst) {
|
||||
// possible and emit it as data.
|
||||
if (getAssembler().getRelaxAll()) {
|
||||
MCInst Relaxed;
|
||||
getAssembler().getBackend().RelaxInstruction(Inst, Relaxed);
|
||||
while (getAssembler().getBackend().MayNeedRelaxation(Relaxed))
|
||||
getAssembler().getBackend().RelaxInstruction(Relaxed, Relaxed);
|
||||
getAssembler().getBackend().relaxInstruction(Inst, Relaxed);
|
||||
while (getAssembler().getBackend().mayNeedRelaxation(Relaxed))
|
||||
getAssembler().getBackend().relaxInstruction(Relaxed, Relaxed);
|
||||
EmitInstToData(Relaxed);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user